Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import Backend from "i18next-http-backend";
import LanguageDetector from "i18next-browser-languagedetector";
i18n
.use(Backend)
.use(initReactI18next)
.use(LanguageDetector)
.init({
fallbackLng: "en",
detection: {
order: ["localStorage", "navigator"],
},
backend: {
loadPath: "/locale/{{lng}}.json",
},
debug: false,
});
export default i18n;
|