We do support localization for all the texts in the app. We are using react-i18next for this.
locales
folder.i18n/index.ts
file.import { initReactI18next } from 'react-i18next';
import i18n from 'i18next';
import en from './en.json';
import fr from './fr.json';
const resources = {
en,
fr,
};
i18n.use(initReactI18next).init({
compatibilityJSON: 'v3',
ns: ['common'],
defaultNS: 'common',
resources,
lng: 'en',
fallbackLng: 'en',
interpolation: {
escapeValue: false,
},
});
export default i18n;