1.0.1 • Published 7 years ago

i18next-po-loader-bkpr v1.0.1

Weekly downloads
221
License
MIT
Repository
github
Last release
7 years ago

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')}
  }
})