Introduction
react-i18next is a powerful internationalization framework for React which is based on i18next. The module provides multiple components eg. to assert that needed translations get loaded or that your content gets rendered when the language changes.
Translations can be configured in the /src/i18n.js
file.
const resources = {
en: {
translation: {
"Welcome back": "Welcome back",
},
},
fr: {
translation: {
"Welcome back": "Bon retour",
},
},
de: {
translation: {
"Welcome back": "Willkommen zurück",
},
},
};