chore: change zh_CN to zh_Hans

This commit is contained in:
Junyan Qin
2025-05-14 16:44:48 +08:00
parent 6652b57a0d
commit c835555a59
42 changed files with 247 additions and 247 deletions

View File

@@ -13,8 +13,8 @@ export default function I18nProvider({ children }: I18nProviderProps) {
}
export function i18nObj(i18nText: I18nText): string {
const language = localStorage.getItem('langbot_language');
if ((language === 'zh-Hans' && i18nText.zh_CN) || !i18nText.en_US) {
return i18nText.zh_CN;
if ((language === 'zh-Hans' && i18nText.zh_Hans) || !i18nText.en_US) {
return i18nText.zh_Hans;
}
return i18nText.en_US;
}