mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-12 08:46:02 +00:00
chore: change zh_CN to zh_Hans
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user