website/docs/add_edit_translations.md
This guide will help you add a new locale to the i18n setup.
main branch.i18n, react-i18next, and next-i18next libraries is beneficial.ISO 639-1. For example, en for English.public/locales directory using the language and country codes as the name, for
example en.en directory into the newly created directory.next-i18next.config.js if it does not already exist.main branch for review.When editing existing translations, follow these rules:
Layout.ts) in common.json to prevent hydration issues.common.json.A script can be used to find missing and potentially untranslated locale files. Run the script from the root dir using
python scripts/frontend-development/find-missing-locales.py.
You may pass any languages you want to include in the search to the script like so:
python scripts/frontend-development/find-missing-locales.py de ja
This would only show missing/untranslated strings in the German (de) and Japanese (ja) locale files.
Passing nothing will default to searching all locales instead.
If you have any questions or need further assistance, please reach out.