fix:国际化失效
This commit is contained in:
parent
b49e59b45c
commit
537fcb8701
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user