Skip to content

Commit 2fa7a40

Browse files
authored
fix(mobile): chinese translation (#18491)
* fix: Chinese translation * using Locale.fromsubtags
1 parent 963dd32 commit 2fa7a40

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

mobile/lib/constants/locales.dart

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,10 @@ const Map<String, Locale> locales = {
66
// Additional locales
77
'Arabic (ar)': Locale('ar'),
88
'Catalan (ca)': Locale('ca'),
9-
'Chinese Simplified (zh_CN)': Locale('zh', 'CN'),
10-
'Chinese Traditional (zh_TW)': Locale('zh', 'TW'),
9+
'Chinese Simplified (zh_CN)':
10+
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'SIMPLIFIED'),
11+
'Chinese Traditional (zh_TW)':
12+
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'),
1113
'Czech (cs)': Locale('cs'),
1214
'Danish (da)': Locale('da'),
1315
'Dutch (nl)': Locale('nl'),

0 commit comments

Comments
 (0)