We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
设置多语言 static const supportedLocales =[ Locale('zh', 'CN'), Locale('zh', 'TW') ];
当更改语言调用changeLanguage方法,发现缓存的是languageCode,由于繁体和简体都是相同languageCode,而countryCode不同,导致切换默认取了简体。
The text was updated successfully, but these errors were encountered:
Future changeLocale(Locale value) async { locale = value; localeChangeCallback?.call(locale); await setValue(languageCodeKey, value.languageCode); Get.updateLocale(value); refreshAppui(); }
// await setValue(languageCodeKey, value.languageCode);
Sorry, something went wrong.
No branches or pull requests
设置多语言
static const supportedLocales =[
Locale('zh', 'CN'),
Locale('zh', 'TW')
];
当更改语言调用changeLanguage方法,发现缓存的是languageCode,由于繁体和简体都是相同languageCode,而countryCode不同,导致切换默认取了简体。
The text was updated successfully, but these errors were encountered: