Spaces:
Runtime error
Runtime error
import i18next from "i18next"; | |
import { initReactI18next } from "react-i18next"; | |
await i18next.use(initReactI18next).init({ | |
fallbackLng: ["en"], | |
debug: true, | |
interpolation: { | |
escapeValue: false, // react already safes from xss | |
}, | |
keySeparator: false, | |
react: { | |
useSuspense: false, | |
}, | |
defaultNS: "translation", | |
backend: { | |
loadPath: "./public/locales/{{lng}}/{{ns}}.json", | |
crossDomain: false, | |
}, | |
}); | |
export default i18next; | |