balibabu commited on
Commit
df34f9b
·
1 Parent(s): 1c7ab64

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

Browse files

### 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):

web/src/hooks/user-setting-hooks.ts CHANGED
@@ -20,7 +20,7 @@ export const useFetchUserInfo = (): ResponseGetType<IUserInfo> => {
20
  if (data.retcode === 0) {
21
  i18n.changeLanguage(
22
  LanguageTranslationMap[
23
- data.language as keyof typeof LanguageTranslationMap
24
  ],
25
  );
26
  }
 
20
  if (data.retcode === 0) {
21
  i18n.changeLanguage(
22
  LanguageTranslationMap[
23
+ data.data.language as keyof typeof LanguageTranslationMap
24
  ],
25
  );
26
  }