feat(i18n): add Traditional Chinese locale (#1360)

* feat: add Traditional Chinese locale

* feat: add Traditional Chinese locale

* feat(i18n): Update Traditional Chinese translation

* fix(i18n): sync Traditional Chinese locale keys

---------

Co-authored-by: Bohdan Triapitsyn <artmore@protonmail.com>
This commit is contained in:
Jia
2026-05-26 02:34:58 +03:00
committed by GitHub
co-authored by Bohdan Triapitsyn
parent 5cde9ca88c
commit 6dbe7d0445
11 changed files with 4051 additions and 14 deletions
+13 -11
View File
@@ -28,17 +28,19 @@ async function loadDictionary(locale: Locale): Promise<I18nDictionary> {
const mod = locale === 'zh-CN'
? await import('./messages/zh-CN') as { dict: I18nDictionary }
: locale === 'es'
? await import('./messages/es') as { dict: I18nDictionary }
: locale === 'pt-BR'
? await import('./messages/pt-BR') as { dict: I18nDictionary }
: locale === 'uk'
? await import('./messages/uk') as { dict: I18nDictionary }
: locale === 'ko'
? await import('./messages/ko') as { dict: I18nDictionary }
: locale === 'pl'
? await import('./messages/pl') as { dict: I18nDictionary }
: { dict: enDict };
: locale === 'zh-TW'
? await import('./messages/zh-TW') as { dict: I18nDictionary }
: locale === 'es'
? await import('./messages/es') as { dict: I18nDictionary }
: locale === 'pt-BR'
? await import('./messages/pt-BR') as { dict: I18nDictionary }
: locale === 'uk'
? await import('./messages/uk') as { dict: I18nDictionary }
: locale === 'ko'
? await import('./messages/ko') as { dict: I18nDictionary }
: locale === 'pl'
? await import('./messages/pl') as { dict: I18nDictionary }
: { dict: enDict };
dictionaries.set(locale, mod.dict);
return mod.dict;
}