chore: t function removed from context and i18n config moved to a seperated file

This commit is contained in:
2025-07-06 19:48:12 +03:30
parent 5960ab62b7
commit 9af0e88036
4 changed files with 1 additions and 6 deletions

16
src/lib/i18n.ts Normal file
View File

@@ -0,0 +1,16 @@
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`,
},
});