amework.n2o-react.7.28.2.source-code.i18n.js Maven / Gradle / Ivy
The newest version!
import i18n from 'i18next'
import { initReactI18next } from 'react-i18next'
import intervalPlural from 'i18next-intervalplural-postprocessor'
import resources from './locales'
// eslint-disable-next-line
i18n
.use(initReactI18next) // passes i18n down to react-i18next
.use(intervalPlural)
.init({
resources,
lng: 'ru',
keySeparator: false, // we do not use keys in form messages.welcome
interpolation: {
escapeValue: false, // react already safes from xss
},
})
export { i18n }
export default i18n