l10: fix for tools_ui.dart

This commit is contained in:
2024-03-17 17:07:25 +08:00
parent 17588dfab8
commit afa77e0c38
2 changed files with 16 additions and 13 deletions

View File

@ -82,12 +82,12 @@ GoRouter router(RouterRef ref) {
@riverpod
class AppGlobalModel extends _$AppGlobalModel {
static final appLocaleSupport = {
const Locale("auto"): S.current.settings_app_language_auto,
const Locale("zh", "CN"): NoL10n.langZHS,
const Locale("zh", "TW"): NoL10n.langZHT,
const Locale("en"): NoL10n.langEn,
};
static Map<Locale, String> get appLocaleSupport => {
const Locale("auto"): S.current.settings_app_language_auto,
const Locale("zh", "CN"): NoL10n.langZHS,
const Locale("zh", "TW"): NoL10n.langZHT,
const Locale("en"): NoL10n.langEn,
};
@override
AppGlobalState build() {