Locales¶
Translation files for front-mobile-app. Currently only French (fr.json) is supported.
Adding a new locale¶
When adding a new locale (e.g. en), update the following files in this order:
- This folder — Create
{locale}.jsonwith all translation keys (copyfr.jsonas a starting template) ../config.ts— Import the new JSON file and add it to theresourcesobject and thensarrayapp.config.ts(project root) — Add the locale to the Expolocalesconfigurationmetadata-locales/(project root) — Add a{locale}.jsonfor App Store / Play Store metadata- dayjs locale — Import the matching dayjs locale in the dayjs config (
@bricks-common-front/helpersor local config)
Checklist¶
- [ ]
src/i18n/locales/{locale}.json— translation file - [ ]
src/i18n/config.ts— register inresources - [ ]
app.config.ts— Expo locale config - [ ]
metadata-locales/{locale}.json— store metadata - [ ] dayjs locale imported