Repository navigation
feat: Implémenter le support multi-langue (FR/EN) réactif avec i18n - #105
Merged
Merged
Conversation
- Added i18next for multi-language support, enabling French and English localization. - Created language switcher component for dynamic language selection. - Updated various components and pages to utilize translations for improved user experience. - Introduced locale files for English and French with common phrases and UI text. - Enhanced layout components to accommodate language changes seamlessly.
…ns and context management - Expanded language support by integrating a new i18n context for managing language state and translations. - Added comprehensive translations for various components and pages in both English and French. - Updated existing components to utilize the new translation hooks, improving user experience across the application. - Introduced a detailed documentation file outlining the i18n setup and usage for future reference.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Résumé
Implémentation du support multi-langue (FR/EN) avec changement de langue en temps réel sans rechargement de page.
Fonctionnalités
✅ Système i18n complet avec hooks
useLanguage()etuseTranslation()✅ React Context pour gestion d'état global de la langue
✅ Sélecteur de langue (Français/English) dans navbar et page d'auth
✅ 200+ clés de traduction organisées par domaine
✅ Changement de langue réactif (sans rechargement)
✅ Persistance en localStorage
✅ Traduction complète de tous les composants
Fichiers Modifiés
src/lib/i18n-context.tsx(NEW) - Context providersrc/lib/i18n.ts- Refactorisé pour utiliser Contextsrc/app/layout-client.tsx- Ajout du LanguageProvidersrc/components/language-switcher.tsx- Intégration complètepublic/locales/fr/common.json- 400+ traductions FRpublic/locales/en/common.json- 400+ traductions EN12+ fichiers de composants - Intégration des traductions
Domaines Traduits
Landing page & authentification
Dashboard & workspaces
Gestion des membres
Opérations boards/tickets
Paramètres & notifications
Barre de navigation & profil
Messages toast & UI
Bénéfices
Pas de rechargement pour changer de langue
Architecture scalable pour ajouter d'autres langues
Traductions centralisées et maintenables
Accessibilité: attribut
langmis à jour dynamiquementValidation
✅ Build production réussi
✅ TypeScript: Tous types validés
✅ Changement de langue: Réactif et instantané
✅ Persistance: localStorage fonctionnel