fix:国际化失效

This commit is contained in:
Riceneeder 2023-01-31 22:25:09 +08:00
parent b49e59b45c
commit 537fcb8701

View File

@ -4,7 +4,7 @@ import 'dart:io';
import 'package:yoyo_get_fast_mirror/i18n/lang.i18n.dart';
import 'package:yoyo_get_fast_mirror/i18n/lang_zh-CN.i18n.dart';
final local = Platform.environment['LANG'] == 'zh_CN.utf8';
final local = Platform.environment['LANG']!.indexOf('zh_CN') == 0;
final lang = local ? zhCN : enUS;
class Error {