mirror of
https://github.com/immich-app/immich.git
synced 2025-06-08 21:38:40 +02:00
fix: construct chinese languages from subtags
This commit is contained in:
parent
a89f3ad97c
commit
6d3a092b22
1 changed files with 4 additions and 2 deletions
|
@ -6,8 +6,10 @@ const Map<String, Locale> locales = {
|
|||
// Additional locales
|
||||
'Arabic (ar)': Locale('ar'),
|
||||
'Catalan (ca)': Locale('ca'),
|
||||
'Chinese Simplified (zh_CN)': Locale('zh', 'CN'),
|
||||
'Chinese Traditional (zh_TW)': Locale('zh', 'TW'),
|
||||
'Chinese Simplified (zh_CN)':
|
||||
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'SIMPLIFIED'),
|
||||
'Chinese Traditional (zh_TW)':
|
||||
Locale.fromSubtags(languageCode: 'zh', scriptCode: 'Hant'),
|
||||
'Czech (cs)': Locale('cs'),
|
||||
'Danish (da)': Locale('da'),
|
||||
'Dutch (nl)': Locale('nl'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue