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
  • Loading branch information
cike8899 committed Sep 23, 2024
1 parent 521ea6a commit a7ac907
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 a7ac907

Please sign in to comment.