Files
new-phone-who-dis/phone/src/i18n.ts
T
2020-10-07 12:19:55 -04:00

23 lines
439 B
TypeScript

import i18n from "i18next";
import { initReactI18next } from "react-i18next";
import en from "./locale/en.json";
const resources = {
en,
};
i18n
.use(initReactI18next) // passes i18n down to react-i18next
.init({
resources,
lng: "en",
keySeparator: false, // we do not use keys in form messages.welcome
interpolation: {
escapeValue: false, // react already safes from xss
},
});
export default i18n;