Aller au contenu

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:

  1. This folder — Create {locale}.json with all translation keys (copy fr.json as a starting template)
  2. ../config.ts — Import the new JSON file and add it to the resources object and the ns array
  3. app.config.ts (project root) — Add the locale to the Expo locales configuration
  4. metadata-locales/ (project root) — Add a {locale}.json for App Store / Play Store metadata
  5. dayjs locale — Import the matching dayjs locale in the dayjs config (@bricks-common-front/helpers or local config)

Checklist

  • [ ] src/i18n/locales/{locale}.json — translation file
  • [ ] src/i18n/config.ts — register in resources
  • [ ] app.config.ts — Expo locale config
  • [ ] metadata-locales/{locale}.json — store metadata
  • [ ] dayjs locale imported