Skip to content

Commit f8a495c

Browse files
Merge pull request #411 from getodk/contributing-locale
Update instructions for adding new locale
2 parents 85a175d + 56281f0 commit f8a495c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

CONTRIBUTING.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,9 @@ To add a new locale to ODK Central Frontend:
166166

167167
1. Add the locale to Transifex.
168168
2. Add the locale to `locales` in [`/src/i18n.js`](/src/i18n.js).
169-
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.
169+
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).
170+
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.
171+
5. Consider spot-checking the translations. In particular, check that messages used in component interpolation have been translated correctly.
170172

171173
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.
172174

0 commit comments

Comments
 (0)