mirror of
https://mirror.ghproxy.com/https://github.com/StarCitizenToolBox/app.git
synced 2024-12-22 18:43:43 +08:00
feat: 日本語 Support
This commit is contained in:
parent
df54a44e0e
commit
e302d9e927
@ -88,6 +88,7 @@ class AppGlobalModel extends _$AppGlobalModel {
|
||||
const Locale("zh", "CN"): NoL10n.langZHS,
|
||||
const Locale("zh", "TW"): NoL10n.langZHT,
|
||||
const Locale("en"): NoL10n.langEn,
|
||||
const Locale("ja"): NoL10n.langJa,
|
||||
};
|
||||
|
||||
@override
|
||||
@ -308,6 +309,7 @@ class AppGlobalModel extends _$AppGlobalModel {
|
||||
final localeCode = value.countryCode != null
|
||||
? "${value.languageCode}_${value.countryCode ?? ""}"
|
||||
: value.languageCode;
|
||||
dPrint("changeLocale == $value localeCode=== $localeCode");
|
||||
await appConfBox.put("app_locale", localeCode);
|
||||
state = state.copyWith(appLocale: value);
|
||||
}
|
||||
|
@ -2,4 +2,5 @@ class NoL10n {
|
||||
static const String langZHS = '简体中文';
|
||||
static const String langZHT = '繁體中文';
|
||||
static const String langEn = 'English';
|
||||
static const String langJa = '日本語';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user