Skip to content

Commit

Permalink
link to list of language codes instead of list of country codes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrjones-plip authored Dec 3, 2024
1 parent 070d1af commit 81faa4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion content/en/building/translations/managing-translations.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Like the rest of the code the translation files live in the GitHub repo. These t

New languages must be added and configured in several places:

- Create a new `messages-xx.properties` file in the [`api/resources/translations`](https://github.com/medic/cht-core/tree/master/api/resources/translations) folder, replacing "xx" with the 2 or 3 letter [language code](https://en.wikipedia.org/wiki/List_of_ISO_3166_country_codes).
- Create a new `messages-xx.properties` file in the [`api/resources/translations`](https://github.com/medic/cht-core/tree/master/api/resources/translations) folder, replacing "xx" with the 2 or 3 letter [language code](https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes).
- Add the language to the [`LOCAL_NAME_MAP` in api](https://github.com/medic/cht-core/blob/e6d184946affc62773d569168216a5b913f38a30/api/src/translations.js#L17). Use the language code for the key, and the local name followed by the English name for the language in brackets, eg: "fr: 'Français (French)'".
- Import the moment language pack in the [main.ts file](https://github.com/medic/cht-core/blob/e6d184946affc62773d569168216a5b913f38a30/webapp/src/ts/main.ts#L23). If moment doesn't provide the required language pack you may need to contribute it upstream to the moment library.

Expand Down

0 comments on commit 81faa4d

Please sign in to comment.