fallbacklocale: Avoid using the country code

This commit is contained in:
Vishesh Handa
2021-07-02 07:15:53 +02:00
parent 4c27381571
commit dd6b069b18

View File

@ -68,8 +68,8 @@ class JournalApp extends StatefulWidget {
supportedLocales: [ supportedLocales: [
// Arranged Alphabetically // Arranged Alphabetically
const Locale('de'), const Locale('de'),
const Locale('es'),
const Locale('en'), const Locale('en'),
const Locale('es'),
const Locale('fr'), const Locale('fr'),
const Locale('hu'), const Locale('hu'),
const Locale('id'), const Locale('id'),
@ -83,7 +83,7 @@ class JournalApp extends StatefulWidget {
const Locale('vi'), const Locale('vi'),
const Locale('zh'), const Locale('zh'),
], // Remember to update Info.plist ], // Remember to update Info.plist
fallbackLocale: const Locale('en', 'US'), fallbackLocale: const Locale('en'),
useFallbackTranslations: true, useFallbackTranslations: true,
path: 'assets/langs', path: 'assets/langs',
useOnlyLangCode: true, useOnlyLangCode: true,