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):
This commit is contained in:
balibabu 2024-09-23 16:28:27 +08:00 committed by GitHub
parent 521ea6afcb
commit 51dd6d1f90
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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