1
0
Fork 0
mirror of https://github.com/terribleplan/next.js.git synced 2024-01-19 02:48:18 +00:00
next.js/examples/with-i18next/tools/startI18n.js

13 lines
261 B
JavaScript

import i18n from 'i18next'
const startI18n = (file, lang) => i18n.init({
lng: lang, // active language http://i18next.com/translate/
fallbackLng: 'pt',
resources: file,
ns: ['common'],
defaultNS: 'common',
debug: false
})
export default startI18n