mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-11-29 09:01:25 +01:00
17 lines
359 B
JavaScript
17 lines
359 B
JavaScript
import i18n from 'i18next';
|
|
import { initReactI18next } from 'react-i18next';
|
|
|
|
i18n.use(initReactI18next).init({
|
|
fallbackLng: 'fi',
|
|
defaultNS: 'translation',
|
|
// debug: true,
|
|
interpolation: {
|
|
escapeValue: false, // not needed for react as it escapes by default
|
|
},
|
|
resources: {},
|
|
react: {
|
|
useSuspense: true,
|
|
},
|
|
});
|
|
|
|
export default i18n;
|