Skip to content

Commit 3756edd

Browse files
authored
fix(classroom): language will be reset upon enter classroom (#1314)
1 parent 27e2ebd commit 3756edd

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

desktop/renderer-app/src/utils/i18n.ts

-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import I18nextBrowserLanguageDetector from "i18next-browser-languagedetector";
55
import { initReactI18next } from "react-i18next";
66

77
const messages: Resource = {
8-
// @TODO wait until en translation completes
98
en: { translation: en },
109
"zh-CN": { translation: zhCN },
1110
};

web/flat-web/src/utils/i18n.ts

-4
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,6 @@ void i18next
1919
interpolation: {
2020
escapeValue: false, // react already safes from xss
2121
},
22-
detection: {
23-
// don't remember last language detection result
24-
caches: [],
25-
},
2622
});
2723

2824
/**

0 commit comments

Comments
 (0)