Add French (fr) interface language
Merged
GU
1mo ago+1852+1852+0123456789012345678901234567890123456789-5-5-0123456789
Focused follow-up to #4705, which was closed because it mixed in unrelated changes. This PR contains only the French translation: no renaming, no default-language change, no Ollama or packaging work.
Changes
src/i18n/locales/fr/*.json: French catalogs forcommon,settings,chat,homeanderrors, in sync with the currentenkeys onmain.src/i18n/index.ts: registers thefrresources.src/components/LanguageSelector.tsx: lists "Français" (fris already inLanguageSchema).- Tests:
src/i18n/fr_locale.test.ts: key and{{placeholder}}parity withen, onei18n.tlookup per namespace so a missing registration fails, and French plural forms.test_gate_locales.test.tsandSubscriptionStatusBanner.test.tsxcoverfr.
- Docs:
rules/i18n.mdandPRODUCT.mdlist the current locales and the French non-breaking-space convention (escape before:,?,!and inside « »).
The cubic review notes from #4705 that apply to these files are addressed: namespace registration coverage, escapes and the stale locale count.
Testing
npx vitest run src/i18n src/components/SubscriptionStatusBanner.test.tsx: 41 passednpm run ts,prettier --checkandoxlintare clean.
🤖 Generated with Claude Code