From: sonata-chen <59016625+sonata-chen@users.noreply.github.com> Date: Wed, 27 Jul 2022 20:58:34 +0000 (+0800) Subject: use zh-TW for language code, instead of zh_Hant. (#725) X-Git-Url: http://these/git/%22%7Burl%7D/%22https:/image.com/%7B%60%24%7BghostArchiveUrl%7D/%7Brss%7D?a=commitdiff_plain;h=4117d04196b7157987d5c7054b9f4767e19ac4fb;p=lemmy-ui.git 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) --- 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 = {};