i18next-po-loader-bkpr
v1.0.1
Published
Load gettext PO files as i18next format directly in webpack
Downloads
1,233
Readme
i18next-po-loader
Load gettext PO files as i18next format directly in webpack
Install
npm install i18next-po-loader --save-dev
Webpack config
{
test: /\.po$/,
loaders: ['i18next-po-loader-bkpr']
}
Usage
i18next.init({
nsSeparator: false,
keySeparator: false,
lng: 'en',
resources: {
de: {translation: require('./translations/de.po')}
}
})