Add english as a fallback locale

This way keys that are not found still use English.
This commit is contained in:
Vishesh Handa
2021-07-01 12:53:43 +02:00
parent 5baa9dc98a
commit 8975baa4e9

View File

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