mirror of
https://github.com/movie-web/movie-web.git
synced 2024-11-11 05:15:08 +01:00
Remove browser language detector, only configurable through settings now
This commit is contained in:
parent
37e10fb40e
commit
b12649bd2e
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user