💚 End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[auth] Support both Chinese Simplified and Traditional
Neeraj Guptab97e77a4f853
diff --git a/auth/lib/locale.dart b/auth/lib/locale.dartindex 94d9ea4a8d..b1bfbb5e56 100644--- a/auth/lib/locale.dart+++ b/auth/lib/locale.dart@@ -32,6 +32,7 @@ const List<Locale> appSupportedLocales = <Locale>[Locale('uk'),Locale('vi'),Locale("zh", "CN"),+ Locale("zh", "TW"),];Locale? autoDetectedLocale;diff --git a/auth/lib/ui/settings/language_picker.dart b/auth/lib/ui/settings/language_picker.dartindex add1891b9d..900a81ecc8 100644--- a/auth/lib/ui/settings/language_picker.dart+++ b/auth/lib/ui/settings/language_picker.dart@@ -181,6 +181,13 @@ class _ItemsWidgetState extends State<ItemsWidget> {case 'fi':return 'Suomi';case 'zh':+ if (locale.countryCode == 'TW') {+ return '中文 (台灣)';+ } else if (locale.countryCode == 'HK') {+ return '中文 (香港)';+ } else if (locale.countryCode == 'CN') {+ return '中文 (中国)';+ }switch (locale.scriptCode) {case 'Hans':return '中文 (简体)';