mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-11 16:05:44 +01:00
Update i18next dependency version
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
import i18n from "i18next";
|
||||
// @ts-ignore
|
||||
import Backend from "i18next-fetch-backend";
|
||||
import LanguageDetector from "i18next-browser-languagedetector";
|
||||
import { reactI18nextModule } from "react-i18next";
|
||||
import { initReactI18next } from "react-i18next";
|
||||
import { urls } from "@scm-manager/ui-components";
|
||||
|
||||
const loadPath = urls.withContextPath("/locales/{{lng}}/{{ns}}.json");
|
||||
@@ -11,7 +12,7 @@ const loadPath = urls.withContextPath("/locales/{{lng}}/{{ns}}.json");
|
||||
i18n
|
||||
.use(Backend)
|
||||
.use(LanguageDetector)
|
||||
.use(reactI18nextModule)
|
||||
.use(initReactI18next)
|
||||
.init({
|
||||
fallbackLng: "en",
|
||||
|
||||
|
||||
Reference in New Issue
Block a user