1
0
Fork 0
mirror of https://github.com/betagouv/mon-entreprise synced 2025-02-09 22:45:01 +00:00
mon-entreprise/publicodes/source/i18n.ts
2020-05-14 15:25:22 +02:00

16 lines
361 B
TypeScript

import i18next from 'i18next'
import unitsTranslations from './locales/units.yaml'
import { initReactI18next } from 'react-i18next'
i18next
.use(initReactI18next)
.init({
resources: {
fr: { units: unitsTranslations.fr },
en: { units: unitsTranslations.en }
}
})
.catch(err => console?.error('Error from i18n load', err))
export default i18next