mirror of
https://github.com/immich-app/immich.git
synced 2025-05-19 21:01:24 +02:00
fix: properly work with languages with multiple scripts (#18167)
Co-authored-by: Ewe Zu Lin <zlewe1997@gmail.com>
This commit is contained in:
parent
89551edee5
commit
2ffcfe06f3
1 changed files with 6 additions and 4 deletions
|
@ -6,8 +6,8 @@ const Map<String, Locale> locales = {
|
|||
// Additional locales
|
||||
'Arabic (ar)': Locale('ar'),
|
||||
'Catalan (ca)': Locale('ca'),
|
||||
'Chinese Simplified (zh_CN)': Locale('zh', 'SIMPLIFIED'),
|
||||
'Chinese Traditional (zh_TW)': Locale('zh', 'Hant'),
|
||||
'Chinese Simplified (zh_CN)': Locale('zh', 'CN'),
|
||||
'Chinese Traditional (zh_TW)': Locale('zh', 'TW'),
|
||||
'Czech (cs)': Locale('cs'),
|
||||
'Danish (da)': Locale('da'),
|
||||
'Dutch (nl)': Locale('nl'),
|
||||
|
@ -31,8 +31,10 @@ const Map<String, Locale> locales = {
|
|||
'Portuguese (pt)': Locale('pt'),
|
||||
'Romanian (ro)': Locale('ro'),
|
||||
'Russian (ru)': Locale('ru'),
|
||||
'Serbian Cyrillic (sr_Cyrl)': Locale('sr', 'Cyrl'),
|
||||
'Serbian Latin (sr_Latn)': Locale('sr', 'Latn'),
|
||||
'Serbian Cyrillic (sr_Cyrl)':
|
||||
Locale.fromSubtags(languageCode: 'sr', scriptCode: 'Cyrl'),
|
||||
'Serbian Latin (sr_Latn)':
|
||||
Locale.fromSubtags(languageCode: 'sr', scriptCode: 'Latn'),
|
||||
'Slovak (sk)': Locale('sk'),
|
||||
'Slovenian (sl)': Locale('sl'),
|
||||
'Spanish (es)': Locale('es'),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue