-
Notifications
You must be signed in to change notification settings - Fork 79
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into bugfix/validator-homepage-link-custom-net…
…work
- Loading branch information
Showing
8 changed files
with
19 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,8 @@ | ||
# How Languages Are Defined | ||
|
||
1. Add the new language code to the array `supportedLanguages` in [/src/i18n/baseConfig.ts](../src/i18n/baseConfig.ts) | ||
2. Add an entry to default language file [/public/locales/en-US/translations.json](../public/locales/en-US/translations.json) with the key being `language_{languageCode}`. | ||
Example: `language_en-US` | ||
3. Create a folder in [/public/locales/](../public/locales) with the language code as its name. | ||
4. Add a new file, `translations.json`, to the new folder. | ||
5. Translate all the entries. If you prefer to use the English version just set the value to `null`. | ||
1. Add the new language code and language name to the map `supportedLanguages` in [/src/i18n/baseConfig.ts](../src/i18n/baseConfig.ts) | ||
2. Create a folder in [/public/locales/](../public/locales) with the language code as its name. | ||
3. Add a new file, `translations.json`, to the new folder. | ||
4. 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](../public/locales/ja-JP/translations.json) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters