ソースを参照

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):
tags/v0.12.0
balibabu 1年前
コミット
51dd6d1f90
コミッターのメールアドレスに関連付けられたアカウントが存在しません
1個のファイルの変更1行の追加1行の削除
  1. 1
    1
      web/src/hooks/user-setting-hooks.ts

+ 1
- 1
web/src/hooks/user-setting-hooks.ts ファイルの表示

@@ -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
],
);
}

読み込み中…
キャンセル
保存