feat: add French language support - #2533
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (2)
WalkthroughFrench is registered as a supported i18next locale, with a complete ChangesFrench localization
Estimated code review effort: 2 (Simple) | ~10 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Add French (fr) as a selectable language across the wallet. - Add locales/fr.json with the full French translation of all UI strings (mirrors the key structure of locales/en.json) - Register the French bundle in i18n.ts: import fr.json, add `fr` to the i18next `resources`, and add `fr: 'Français'` to SUPPORTED_LANGUAGES so it appears in the language picker and on the initial language-selection screen Co-Authored-By: Temitayo GBOLAHAN <80360009+princespecial@users.noreply.github.com> Signed-off-by: Tobi3h <tobiobassandjo@gmail.com> Signed-off-by: Temitayo GBOLAHAN <80360009+princespecial@users.noreply.github.com>
Description
Adds French as a fully supported language in Inji Wallet.
Changes
locales/fr.json(new): complete French translation, structurally identical toen.json— same keys, same{{interpolation}}placeholders, same arrays. Verified 1:1 key parity withen.json(806 keys, none missing/extra).i18n.ts:import fr from './locales/fr.json'frto the i18nextresourcesmapfr: 'Français'toSUPPORTED_LANGUAGESHow it works
The language picker (
LanguageSelector) and the setup screen are driven bySUPPORTED_LANGUAGES, so French appears automatically. The three-letter code mapping for server-localized fields uses theiso-639-3package (fr → fra) and needs no change. French is LTR, so noI18nManager/RTL changes are required. No new dependencies.Testing
fr.jsonmatches the 806 keys ofen.json.Issue ticket number and link
Screenshots
Summary by CodeRabbit