Skip to content

Commit 091d48b

Browse files
committed
fix: создание i18next инстанса
1 parent d60cd57 commit 091d48b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/i18n.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
import i18next from "i18next";
22
import translations from "./locales/index.js";
3-
i18next.init({
3+
4+
const i18nextInstance = i18next.createInstance();
5+
i18nextInstance.init({
46
lng: "ru",
57
resources: translations,
68
fallbackLng: "ru",
79
supportedLngs: ["en", "ru"],
810
});
911

10-
export default i18next;
12+
export default i18nextInstance;

0 commit comments

Comments
 (0)