mirror of
https://github.com/steveiliop56/tinyauth.git
synced 2026-03-15 11:12:02 +00:00
fix: fix translations not loading
This commit is contained in:
@@ -2,7 +2,6 @@ import i18n from "i18next";
|
|||||||
import { initReactI18next } from "react-i18next";
|
import { initReactI18next } from "react-i18next";
|
||||||
import LanguageDetector from "i18next-browser-languagedetector";
|
import LanguageDetector from "i18next-browser-languagedetector";
|
||||||
import resourcesToBackend from "i18next-resources-to-backend";
|
import resourcesToBackend from "i18next-resources-to-backend";
|
||||||
import { languages } from "./locales";
|
|
||||||
|
|
||||||
i18n
|
i18n
|
||||||
.use(LanguageDetector)
|
.use(LanguageDetector)
|
||||||
@@ -16,7 +15,6 @@ i18n
|
|||||||
fallbackLng: "en",
|
fallbackLng: "en",
|
||||||
debug: import.meta.env.MODE === "development",
|
debug: import.meta.env.MODE === "development",
|
||||||
nonExplicitSupportedLngs: true,
|
nonExplicitSupportedLngs: true,
|
||||||
supportedLngs: Object.keys(languages),
|
|
||||||
load: "currentOnly",
|
load: "currentOnly",
|
||||||
detection: {
|
detection: {
|
||||||
lookupLocalStorage: "tinyauth-lang",
|
lookupLocalStorage: "tinyauth-lang",
|
||||||
|
|||||||
Reference in New Issue
Block a user