-
Notifications
You must be signed in to change notification settings - Fork 21
feat: Add French locale support #171
Open
Description
French is one of the most widely spoken languages globally. Adding French locale support will expand the application's accessibility to French-speaking developers and increase international reach.
Overview
French will be added as a new supported locale with the language code fr. Unlike Arabic and Persian, French uses left-to-right (LTR) layout, making this a straightforward addition.
Tasks
- Create a new locale file
locales/fr.jsonwith all translation keys fromlocales/en.jsontranslated to French. - Update
lib/i18n-core.tsto addfrto thesupportedLocalesarray. - Add French entry to the
localeMetaobject inlib/i18n-core.tswith the following configuration:fr: { dir: "ltr", label: "Français" }
- Test the language switcher to ensure French appears in the dropdown menu.
- Test the application with French locale selected to ensure all UI elements display correctly.
- Verify that all text content renders properly without layout issues.
- Update
CONTRIBUTING.mdwith instructions for translating content to French (if not already documented in the localization guide).
Translation Keys
All translation keys from the existing English locale must be translated to French. The keys include:
- Application titles and subtitles
- Error messages
- UI labels and buttons
- Explanations and descriptions
- Comparison metrics
- Community contribution labels
- And more (reference
locales/en.jsonfor the complete list)
Testing
- Language switcher displays "Français" correctly.
- All pages render without errors when French is selected.
- No layout shifts or broken styling in LTR mode.
- All French translations are grammatically correct and contextually appropriate.
Tip
🚀 Want to contribute?
Comment assign me to be automatically assigned to this issue via our GitHub Actions bot. Happy coding! ✨