瀏覽代碼

fix: Initial language is English, but the UI is in Chinese #2514 (#2541)

### What problem does this PR solve?

fix: Initial language is English, but the UI is in Chinese #2514

### Type of change

- [x] Bug Fix (non-breaking change which fixes an issue)
- [ ] New Feature (non-breaking change which adds functionality)
- [ ] Documentation Update
- [ ] Refactoring
- [ ] Performance Improvement
- [ ] Other (please describe):
tags/v0.12.0
balibabu 1 年之前
父節點
當前提交
51dd6d1f90
沒有連結到貢獻者的電子郵件帳戶。
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      web/src/hooks/user-setting-hooks.ts

+ 1
- 1
web/src/hooks/user-setting-hooks.ts 查看文件

@@ -20,7 +20,7 @@ export const useFetchUserInfo = (): ResponseGetType<IUserInfo> => {
if (data.retcode === 0) {
i18n.changeLanguage(
LanguageTranslationMap[
data.language as keyof typeof LanguageTranslationMap
data.data.language as keyof typeof LanguageTranslationMap
],
);
}

Loading…
取消
儲存