From 4117d04196b7157987d5c7054b9f4767e19ac4fb Mon Sep 17 00:00:00 2001 From: sonata-chen <59016625+sonata-chen@users.noreply.github.com> Date: Thu, 28 Jul 2022 04:58:34 +0800 Subject: [PATCH] use zh-TW for language code, instead of zh_Hant. (#725) 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shared/i18next.ts b/src/shared/i18next.ts index 32f1cd4..eaedbbf 100644 --- a/src/shared/i18next.ts +++ b/src/shared/i18next.ts @@ -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 = {}; -- 2.44.1