We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7bac1ac commit 2f4f250Copy full SHA for 2f4f250
1 file changed
frontend/src/lib/i18n/i18n.ts
@@ -2,6 +2,7 @@ import i18n from "i18next";
2
import { initReactI18next } from "react-i18next";
3
import LanguageDetector from "i18next-browser-languagedetector";
4
import resourcesToBackend from "i18next-resources-to-backend";
5
+import { languages } from "./locales";
6
7
i18n
8
.use(LanguageDetector)
@@ -14,12 +15,12 @@ i18n
14
15
.init({
16
fallbackLng: "en",
17
debug: import.meta.env.MODE === "development",
-
18
- interpolation: {
19
- escapeValue: false,
20
- },
21
+ nonExplicitSupportedLngs: true,
+ supportedLngs: Object.keys(languages),
22
load: "currentOnly",
+ detection: {
+ lookupLocalStorage: "tinyauth-lang",
23
+ },
24
});
25
26
export default i18n;
0 commit comments