diff --git a/android/app/build.gradle b/android/app/build.gradle index 612f7eb6..b5b933be 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -69,7 +69,7 @@ android { targetSdkVersion flutter.targetSdkVersion versionCode flutterVersionCode.toInteger() versionName flutterVersionName - resourceConfigurations += ["ar", "en", "de", "fa", "fr", "vi", "zh"] + resourceConfigurations += ["en", "ar", "de", "fa", "fr", "vi", "zh"] } signingConfigs { diff --git a/android/app/src/main/res/xml/locales_config.xml b/android/app/src/main/res/xml/locales_config.xml index ecfe4e70..dc95e623 100644 --- a/android/app/src/main/res/xml/locales_config.xml +++ b/android/app/src/main/res/xml/locales_config.xml @@ -1,7 +1,7 @@ - + diff --git a/lib/view/app.dart b/lib/view/app.dart index 2f9657df..4545f94e 100644 --- a/lib/view/app.dart +++ b/lib/view/app.dart @@ -163,8 +163,10 @@ class _AppView extends State { GlobalCupertinoLocalizations.delegate, ], supportedLocales: const [ - Locale.fromSubtags(languageCode: 'ar'), + // Fixed #133 + // en must be the first item in the list (default language) Locale.fromSubtags(languageCode: 'en'), + Locale.fromSubtags(languageCode: 'ar'), Locale.fromSubtags(languageCode: 'de'), Locale.fromSubtags(languageCode: 'fa'), Locale.fromSubtags(languageCode: 'fr'),