From 0c17a67573c1d185ed426b50cf86a2b646fe2252 Mon Sep 17 00:00:00 2001 From: open-trade Date: Sun, 25 Apr 2021 12:49:03 +0800 Subject: [PATCH] fix on zh --- flutter_hbb/lib/common.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flutter_hbb/lib/common.dart b/flutter_hbb/lib/common.dart index 455a2e7d8..cbf2bec98 100644 --- a/flutter_hbb/lib/common.dart +++ b/flutter_hbb/lib/common.dart @@ -4,7 +4,7 @@ import 'package:flutter_easyloading/flutter_easyloading.dart'; import 'package:tuple/tuple.dart'; import 'dart:io'; -final bool isZh = Platform.localeName == "zh_CN"; +final bool isZh = Platform.localeName.startsWith('zh'); final langs = >{ 'zh': {