chore(i18n): use default i18n provider, define LanguageManager component to handle direction and lng

This commit is contained in:
Sajad Mirjalili
2025-07-15 12:18:42 +03:30
parent f14bd00ed8
commit 141a827d22
20 changed files with 95 additions and 153 deletions

View File

@@ -1,16 +0,0 @@
import i18next from 'i18next';
import I18NextHttpBackend from 'i18next-http-backend';
import { initReactI18next } from 'react-i18next';
i18next
.use(I18NextHttpBackend)
.use(initReactI18next)
.init({
lng: 'en',
interpolation: {
escapeValue: false,
},
backend: {
loadPath: `${window.location.origin}/i18n/{{lng}}.json`,
},
});