add cache for language

This commit is contained in:
2025-08-06 22:34:01 +02:00
parent 0a62011b3a
commit 76db2f8254
2 changed files with 21 additions and 2 deletions

View File

@@ -26,7 +26,7 @@ class MyApp extends StatelessWidget {
return MaterialApp(
debugShowCheckedModeBanner: false,
locale: localeProvider.locale, // <-- utilise la locale courante
supportedLocales: const [Locale('en'), Locale('fr'), Locale('de')],
supportedLocales: L10n.all,
localizationsDelegates: AppLocalizations.localizationsDelegates,
home: LoginDemo(),
);