21 lines
388 B
TypeScript
21 lines
388 B
TypeScript
import i18n from "i18next";
|
|
import HttpBackend from "i18next-http-backend";
|
|
import { initReactI18next } from "react-i18next";
|
|
|
|
i18n
|
|
.use(HttpBackend)
|
|
.use(initReactI18next)
|
|
.init({
|
|
lng: "fa",
|
|
fallbackLng: "en",
|
|
debug: false,
|
|
interpolation: {
|
|
escapeValue: false,
|
|
},
|
|
backend: {
|
|
loadPath: "/locales/{{lng}}.json",
|
|
},
|
|
});
|
|
|
|
export default i18n;
|