mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-15 05:37:32 +00:00
fix: zh-Hans i18n fails on page reload (#1092)
Co-authored-by: himself65 <himself65@outlook.com>
This commit is contained in:
@@ -33,7 +33,7 @@ const resources = LOCALES.reduce<Resource>(
|
||||
|
||||
const fallbackLng = 'en';
|
||||
const standardizeLocale = (language: string) => {
|
||||
if (language === 'zh-CN' || language === 'zh') {
|
||||
if (language === 'zh-CN' || language === 'zh' || language === 'zh-Hans') {
|
||||
language = 'zh-Hans';
|
||||
} else if (language.slice(0, 2).toLowerCase() === 'zh') {
|
||||
language = 'zh-Hant';
|
||||
|
||||
Reference in New Issue
Block a user