Skip to content

Commit

Permalink
Update instructions for adding new locale
Browse files Browse the repository at this point in the history
  • Loading branch information
matthew-white committed Jan 13, 2021
1 parent 85a175d commit 56281f0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ To add a new locale to ODK Central Frontend:

1. Add the locale to Transifex.
2. Add the locale to `locales` in [`/src/i18n.js`](/src/i18n.js).
3. Check that there is a flatpickr config for the locale. If there isn't one, create a GitHub issue in this repository or contact us on Slack.
3. If the locale pluralizes differently from the default, specify its pluralization rules in `/src/i18n.js`. If the locale does not have exactly two plural forms, specify the number of plural forms in [`/bin/util/transifex.js`](/bin/util/transifex.js).
4. Check that there is a flatpickr config for the locale. If there isn't one, create a GitHub issue in this repository or contact us on Slack.
5. Consider spot-checking the translations. In particular, check that messages used in component interpolation have been translated correctly.

Note that right now, the router will use the user's preferred language to load the locale, but it will only use the first subtag of the language. If/when we add a locale with multiple subtags, we will need to update the router.

Expand Down

0 comments on commit 56281f0

Please sign in to comment.