Remove browser language detector, only configurable through settings now

This commit is contained in:
mrjvs 2023-05-22 19:26:57 +02:00
parent 37e10fb40e
commit b12649bd2e

View File

@ -1,5 +1,4 @@
import i18n from "i18next"; import i18n from "i18next";
import LanguageDetector from "i18next-browser-languagedetector";
import { initReactI18next } from "react-i18next"; import { initReactI18next } from "react-i18next";
// Languages // Languages
@ -36,9 +35,6 @@ const locales = {
}, },
}; };
i18n i18n
// detect user language
// learn more: https://github.com/i18next/i18next-browser-languageDetector
.use(LanguageDetector)
// pass the i18n instance to react-i18next. // pass the i18n instance to react-i18next.
.use(initReactI18next) .use(initReactI18next)
// init i18next // init i18next