UNPKG

cra-template-truemark

Version:

CRA Template with setups including, eslint, prettier, eslint, husky and reviewdog

36 lines (30 loc) 585 B
import i18n from "i18next"; import Backend from "i18next-http-backend"; import { initReactI18next } from "react-i18next"; import en from "./locales/en"; import es from "./locales/es"; const resources = { en, es, }; i18n .use(Backend) .use(initReactI18next) .init({ resources, fallbackLng: "en", lng: "en", debug: false, detection: { order: ["queryString", "cookie"], cache: ["cookie"], }, interpolation: { escapeValue: false, }, react: { wait: true, useSuspense: false, }, }); export default i18n;