mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-01-22 08:46:18 +01:00
Use generated locale list
This commit is contained in:
parent
866720fa3a
commit
6f0a2514b9
2 changed files with 2 additions and 19 deletions
|
@ -2,3 +2,4 @@ arb-dir: lib/l10n
|
|||
template-arb-file: app_en.arb
|
||||
output-localization-file: app_localizations.dart
|
||||
untranslated-messages-file: lib/l10n/untranslated-messages.txt
|
||||
preferred-supported-locales: [en]
|
||||
|
|
|
@ -146,25 +146,7 @@ class _WrappedAppState extends State<_WrappedApp>
|
|||
scaffoldMessengerKey: _scaffoldMessengerKey,
|
||||
locale: state.language.locale,
|
||||
localizationsDelegates: AppLocalizations.localizationsDelegates,
|
||||
supportedLocales: const [
|
||||
// the order here doesn't matter, except for the first one, which
|
||||
// must be en
|
||||
Locale("en"),
|
||||
Locale("el"),
|
||||
Locale("es"),
|
||||
Locale("fr"),
|
||||
Locale("ru"),
|
||||
Locale("de"),
|
||||
Locale("cs"),
|
||||
Locale("fi"),
|
||||
Locale("pl"),
|
||||
Locale("pt"),
|
||||
Locale.fromSubtags(languageCode: "zh", scriptCode: "Hans"),
|
||||
Locale.fromSubtags(languageCode: "zh", scriptCode: "Hant"),
|
||||
Locale("it"),
|
||||
Locale("nl"),
|
||||
Locale("ca"),
|
||||
],
|
||||
supportedLocales: AppLocalizations.supportedLocales,
|
||||
builder: (context, child) {
|
||||
MyApp._globalContext = context;
|
||||
return _ThemedMyApp(child: child!);
|
||||
|
|
Loading…
Reference in a new issue