From dd6b069b18c201366a3d3fc30c3da84c9a187c44 Mon Sep 17 00:00:00 2001 From: Vishesh Handa Date: Fri, 2 Jul 2021 07:15:53 +0200 Subject: [PATCH] fallbacklocale: Avoid using the country code --- lib/app.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/app.dart b/lib/app.dart index a7a00f8b..abc0e01f 100644 --- a/lib/app.dart +++ b/lib/app.dart @@ -68,8 +68,8 @@ class JournalApp extends StatefulWidget { supportedLocales: [ // Arranged Alphabetically const Locale('de'), - const Locale('es'), const Locale('en'), + const Locale('es'), const Locale('fr'), const Locale('hu'), const Locale('id'), @@ -83,7 +83,7 @@ class JournalApp extends StatefulWidget { const Locale('vi'), const Locale('zh'), ], // Remember to update Info.plist - fallbackLocale: const Locale('en', 'US'), + fallbackLocale: const Locale('en'), useFallbackTranslations: true, path: 'assets/langs', useOnlyLangCode: true,