-
Add the new language code and language name to the map
supportedLanguagesin /src/i18n/baseConfig.ts -
Create a folder in /public/locales/ with the language code as its name.
-
Add a new file,
translations.json, to the new folder. -
Translate all the entries. If you prefer to use the English version just set the value to
null.Example file: /public/locales/ja-JP/translations.json
When making changes to the base (English) language file follow the guide based on the type and scope of the change.
- Create entry in
en-US/translations.json - Add an entry to all other
translation.jsonfiles. Set the value to benull(which means it will default to using the English version).
- Update the entry in
en-US/translations.json - If the meaning does NOT change materially, you can leave them as is. Ex. "Please check your transaction hash" => "Please check your transaction hash or CTID."
- If the entry has a new meaning than before, set the value to
nullin all othertranslation.jsonfiles. Note that changing a translation tonullcauses it to fall back to the English version, and is a signal to language contributors that they may want to provide a fresh localization.