]> Untitled Git - lemmy-ui.git/commitdiff
use zh-TW for language code, instead of zh_Hant. (#725)
authorsonata-chen <59016625+sonata-chen@users.noreply.github.com>
Wed, 27 Jul 2022 20:58:34 +0000 (04:58 +0800)
committerGitHub <noreply@github.com>
Wed, 27 Jul 2022 20:58:34 +0000 (16:58 -0400)
Browser never returns zh_Hant. Chinese language code is usually categorized according to geographical region. (zh-CN, zh-HK, zh-TW)

src/shared/i18next.ts

index 32f1cd4a5ad05cfa25af2f16cbb4cf45f83e41db..eaedbbf817b4fada361b862b4c7d7c33c26b3083 100644 (file)
@@ -63,7 +63,7 @@ export const languages = [
   { resource: sv, code: "sv", name: "Svenska" },
   { resource: vi, code: "vi", name: "Tiếng Việt" },
   { resource: zh, code: "zh", name: "中文 (简体)" },
-  { resource: zh_Hant, code: "zh_Hant", name: "中文 (繁體)" },
+  { resource: zh_Hant, code: "zh-TW", name: "中文 (繁體)" },
 ];
 
 const resources: Resource = {};