diff --git a/lib/main.dart b/lib/main.dart index 8039daa4..a29c2a27 100644 --- a/lib/main.dart +++ b/lib/main.dart @@ -60,10 +60,11 @@ class MyApp extends StatelessWidget { @override Widget build(BuildContext context) { - String rawLocale = prefs.getString('language') ?? 'en_US'; - String replaceLocale = rawLocale.replaceAll('_', '-'); - List localeList = replaceLocale.split('-'); - Locale locale = Locale(localeList[0], localeList[1]); + // String rawLocale = prefs.getString('language') ?? 'en_US'; + // String replaceLocale = rawLocale.replaceAll('_', '-'); + // List localeList = replaceLocale.split('-'); + // Locale locale = Locale(localeList[0], localeList[1]); + Locale locale = const Locale('en', 'US'); return DynamicThemeBuilder( title: 'ReVanced Manager', @@ -71,6 +72,7 @@ class MyApp extends StatelessWidget { localizationsDelegates: [ FlutterI18nDelegate( translationLoader: FileTranslationLoader( + fallbackFile: 'en_US', forcedLocale: locale, basePath: 'assets/i18n', useCountryCode: true, diff --git a/lib/ui/views/settings/settings_view.dart b/lib/ui/views/settings/settings_view.dart index 91cfa996..ec4720bb 100644 --- a/lib/ui/views/settings/settings_view.dart +++ b/lib/ui/views/settings/settings_view.dart @@ -42,8 +42,8 @@ class SettingsView extends StatelessWidget { delegate: SliverChildListDelegate.fixed( [ SUpdateThemeUI(), - SUpdateLanguageUI(), - _settingsDivider, + // SUpdateLanguageUI(), + // _settingsDivider, STeamSection(), _settingsDivider, SAdvancedSection(),