Jed (gettext style i18n) Webpack Plugin
Complete i18n solution with webpack and Jed.
Installation
npm install jed-webpack-plugin --save-dev
Usage
webpack.config.js
var locales = 'en-us' 'ru' 'de'; moduleexports = locales;
entry - index.js
var label = ; // Pluralsvar n = 10;var appleLabel1 = ;// orvar appleLabel2 = jed;
Options
mo - translation file path (.mo)
defineJedIdentifier - (optional) name identifier for providing access to jed instance
Use Poedit to create translation files from your source code and see examples.