Skip to content

Commit

Permalink
fix: Initial language is English, but the UI is in Chinese infiniflow…
Browse files Browse the repository at this point in the history
…#2514 (infiniflow#2541)

### What problem does this PR solve?

fix: Initial language is English, but the UI is in Chinese infiniflow#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):
  • Loading branch information
cike8899 authored Sep 23, 2024
1 parent e5f415e commit 6be8002
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/hooks/user-setting-hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
],
);
}
Expand Down

0 comments on commit 6be8002

Please sign in to comment.