All files / app/test i18n.ts

100% Statements 5/5
100% Branches 0/0
100% Functions 0/0
100% Lines 5/5

Press n or j to go to the next uncovered block, b, p or k for the previous block.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 2083x 83x 83x   83x                           83x  
import resources from "i18n/resources";
import i18n from "i18next";
import { initReactI18next } from "react-i18next";
 
i18n.use(initReactI18next).init({
  fallbackLng: "en",
  compatibilityJSON: "v3",
  debug: process.env.NODE_ENV === "development",
  interpolation: {
    // React does this by default already
    escapeValue: false,
  },
  resources: {
    en: resources,
  },
  ns: ["global"],
});
 
export default i18n;