gakshat14 / i18next-po-loader

Load gettext PO files as i18next format directly in webpack

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

💥 Careful: This package is no longer maintained and is only here for historic reasons. This means you should very likely not use it. You have been warned. 💥


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

Usage

i18next.init({
  nsSeparator: false,
  keySeparator: false,
  lng: 'en',
  resources: {
    de: {translation: require('./translations/de.po')}
  }
})

About

Load gettext PO files as i18next format directly in webpack

License:MIT License


Languages

Language:JavaScript 100.0%