mirror of
https://github.com/ReVanced/revanced-manager.git
synced 2024-11-10 01:01:56 +01:00
fix: disable changing languages for now.
This commit is contained in:
parent
c5ba6a238a
commit
a0af0dde0a
2 changed files with 8 additions and 6 deletions
|
@ -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<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',
|
||||
|
@ -71,6 +72,7 @@ class MyApp extends StatelessWidget {
|
|||
localizationsDelegates: [
|
||||
FlutterI18nDelegate(
|
||||
translationLoader: FileTranslationLoader(
|
||||
fallbackFile: 'en_US',
|
||||
forcedLocale: locale,
|
||||
basePath: 'assets/i18n',
|
||||
useCountryCode: true,
|
||||
|
|
|
@ -42,8 +42,8 @@ class SettingsView extends StatelessWidget {
|
|||
delegate: SliverChildListDelegate.fixed(
|
||||
<Widget>[
|
||||
SUpdateThemeUI(),
|
||||
SUpdateLanguageUI(),
|
||||
_settingsDivider,
|
||||
// SUpdateLanguageUI(),
|
||||
// _settingsDivider,
|
||||
STeamSection(),
|
||||
_settingsDivider,
|
||||
SAdvancedSection(),
|
||||
|
|
Loading…
Reference in a new issue