Files
orion/app/modules/analytics/locales/fr.json
Samir Boulahtit dad02695f6 fix(i18n): add missing menu translations and fix admin language resolution
Two issues caused the admin sidebar to show a mix of French and English:

1. Only 3 of 14 modules had "menu" translations in their locale files.
   When a key was missing, _translate_label() fell back to English Title
   Case from the key name — mixing with French from modules that had
   translations. Added menu sections to all 4 languages (en, fr, de, lb)
   across 13 modules.

2. The language middleware hardcoded admin to "en" ignoring user preference,
   while the menu API fell back to DEFAULT_LANGUAGE ("fr") when
   preferred_language was NULL. Fixed middleware to respect user's
   preferred_language and menu API to use middleware-resolved language
   as fallback.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-07 23:37:13 +01:00

21 lines
749 B
JSON

{
"analytics": {
"page_title": "Analytique",
"dashboard_title": "Tableau de bord analytique",
"dashboard_subtitle": "Consultez les indicateurs de performance de votre boutique",
"period_7d": "7 derniers jours",
"period_30d": "30 derniers jours",
"period_90d": "90 derniers jours",
"period_1y": "Dernière année",
"imports_count": "Importations",
"products_added": "Produits ajoutés",
"inventory_locations": "Emplacements d'inventaire",
"data_since": "Données depuis",
"loading": "Chargement des analyses...",
"error_loading": "Impossible de charger les données analytiques"
},
"menu": {
"analytics": "Analytique"
}
}