17 lines
367 B
TypeScript
17 lines
367 B
TypeScript
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`,
|
|
},
|
|
});
|