Skip to content

Commit

Permalink
fix: disable changing languages for now.
Browse files Browse the repository at this point in the history
  • Loading branch information
Aunali321 committed Nov 29, 2022
1 parent c5ba6a2 commit a0af0dd
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
10 changes: 6 additions & 4 deletions lib/main.dart
Original file line number Diff line number Diff line change
Expand Up @@ -60,17 +60,19 @@ class MyApp extends StatelessWidget {

@override
Widget build(BuildContext context) {
String rawLocale = prefs.getString('language') ?? 'en_US';
String replaceLocale = rawLocale.replaceAll('_', '-');
List<String> localeList = replaceLocale.split('-');
Locale locale = Locale(localeList[0], localeList[1]);
// String rawLocale = prefs.getString('language') ?? 'en_US';
// String replaceLocale = rawLocale.replaceAll('_', '-');
// List<String> localeList = replaceLocale.split('-');
// Locale locale = Locale(localeList[0], localeList[1]);
Locale locale = const Locale('en', 'US');

return DynamicThemeBuilder(
title: 'ReVanced Manager',
home: const NavigationView(),
localizationsDelegates: [
FlutterI18nDelegate(
translationLoader: FileTranslationLoader(
fallbackFile: 'en_US',
forcedLocale: locale,
basePath: 'assets/i18n',
useCountryCode: true,
Expand Down
4 changes: 2 additions & 2 deletions lib/ui/views/settings/settings_view.dart
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ class SettingsView extends StatelessWidget {
delegate: SliverChildListDelegate.fixed(
<Widget>[
SUpdateThemeUI(),
SUpdateLanguageUI(),
_settingsDivider,
// SUpdateLanguageUI(),
// _settingsDivider,
STeamSection(),
_settingsDivider,
SAdvancedSection(),
Expand Down

0 comments on commit a0af0dd

Please sign in to comment.