mirror of
https://git.mirrors.martin98.com/https://github.com/infiniflow/ragflow.git
synced 2025-05-28 17:18:30 +08:00
### 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):
This commit is contained in:
parent
521ea6afcb
commit
51dd6d1f90
@ -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…
x
Reference in New Issue
Block a user