You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
portainer/app/setup-tests/i18n.ts

22 lines
456 B

import i18n from 'i18next';
import { initReactI18next } from 'react-i18next';
import translation from '../../translations/en/translation.json';
i18n.use(initReactI18next).init({
lng: 'en',
fallbackLng: 'en',
// have a common namespace used around the full app
ns: ['translationsNS'],
defaultNS: 'translationsNS',
interpolation: {
escapeValue: false,
},
resources: { en: { translationsNS: translation } },
});
export default i18n;