theme and lang save. Notification fix

This commit is contained in:
2026-03-19 11:16:38 +07:00
parent b95f31977e
commit 8d5919f35e
8 changed files with 93 additions and 41 deletions
+9 -2
View File
@@ -8,8 +8,15 @@ i18n
.use(LanguageDetector)
.use(initReactI18next)
.init({
resources: { en: { translation: en }, ru: { translation: ru } },
fallbackLng: "en", // язык по умолчанию
resources: {
en: { translation: en },
ru: { translation: ru },
},
fallbackLng: "en",
detection: {
order: ["localStorage", "navigator"],
caches: ["localStorage"],
},
interpolation: { escapeValue: false },
});