0.1.0 • Published 9 years ago

i18n-wrapper-webpack-plugin v0.1.0

Weekly downloads
2
License
-
Repository
github
Last release
9 years ago

i18n Wrapper for WebPack

A simple WebPack plugin that accepts an instance of i18n (https://www.npmjs.com/package/i18n) and provides localisation based on the configured i18n instance.

Usage

var i18nWebpackPlugin = require('i18n-wrapper-webpack-plugin');
var i18n = require('i18n');

// Configure i18n as usual, e.g:
i18n.configure({
    locales:['en', 'de'],
    directory: __dirname + '/locales'
});

...

 // ...inside the WebPack configuration object
 plugins: [..., new i18nWebpackPlugin(i18n), ...]

License

MIT (http://www.opensource.org/licenses/mit-license.php)