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)
This commit is contained in:
sonata-chen 2022-07-28 04:58:34 +08:00 committed by GitHub
parent c2c98ac638
commit 4117d04196
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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