fix: 修复语言设置为简体中文而非繁体翻译
This commit is contained in:
@@ -96,6 +96,7 @@ abstract class AppLocalizations {
|
||||
static const List<Locale> supportedLocales = <Locale>[
|
||||
Locale('en'),
|
||||
Locale('zh'),
|
||||
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'),
|
||||
];
|
||||
|
||||
/// No description provided for @appTitle.
|
||||
@@ -1940,6 +1941,42 @@ abstract class AppLocalizations {
|
||||
/// **'空亡'**
|
||||
String get resultKongWangLabel;
|
||||
|
||||
/// No description provided for @termYueJian.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'月建'**
|
||||
String get termYueJian;
|
||||
|
||||
/// No description provided for @termRiChen.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'日辰'**
|
||||
String get termRiChen;
|
||||
|
||||
/// No description provided for @termYuePo.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'月破'**
|
||||
String get termYuePo;
|
||||
|
||||
/// No description provided for @termRiChong.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'日冲'**
|
||||
String get termRiChong;
|
||||
|
||||
/// No description provided for @guaNameSimplifiedChars.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'风泽观讼师谦随蛊临贲剥复无颐恒壮晋损渐归丰兑涣节济'**
|
||||
String get guaNameSimplifiedChars;
|
||||
|
||||
/// No description provided for @guaNameTraditionalChars.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
/// **'风泽观讼师谦随蛊临贲剥复无颐恒壮晋损渐归丰兑涣节济'**
|
||||
String get guaNameTraditionalChars;
|
||||
|
||||
/// No description provided for @manualScreenTitle.
|
||||
///
|
||||
/// In zh, this message translates to:
|
||||
@@ -2277,6 +2314,18 @@ class _AppLocalizationsDelegate
|
||||
}
|
||||
|
||||
AppLocalizations lookupAppLocalizations(Locale locale) {
|
||||
// Lookup logic when language+script codes are specified.
|
||||
switch (locale.languageCode) {
|
||||
case 'zh':
|
||||
{
|
||||
switch (locale.scriptCode) {
|
||||
case 'Hant':
|
||||
return AppLocalizationsZhHant();
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// Lookup logic when only language code is specified.
|
||||
switch (locale.languageCode) {
|
||||
case 'en':
|
||||
|
||||
Reference in New Issue
Block a user