Skip to content
Snippets Groups Projects
Commit 262b7874 authored by Jessie Keck's avatar Jessie Keck
Browse files

Install i18next and react-i18next.

parent d27626eb
Branches
Tags
No related merge requests found
{
"translation": {}
}
import i18n from 'i18next';
import { reactI18nextModule } from 'react-i18next';
import en from '../locales/en/translation.json';
// Load translations for each language
const resources = {
en,
};
i18n
.use(reactI18nextModule)
.init({
resources,
lng: 'en',
fallbackLng: 'en',
interpolation: {
escapeValue: false, // react is already safe from xss
},
});
export default i18n;
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment