keycloak-scim/src/i18n.ts
Erik Jan de Wit 14860ae628 initial version
change favicon based on env props
2020-08-05 17:00:38 +02:00

23 lines
422 B
TypeScript

import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
// import backend from "i18next-http-backend";
import messages from './messages.json';
const initOptions = {
resources: messages,
lng: 'en',
fallbackLng: 'en',
saveMissing: true,
interpolation: {
escapeValue: false,
},
};
i18n
.use(initReactI18next)
// .use(backend)
.init(initOptions);
export { i18n, initOptions };