i18n-wrapper-webpack-plugin

0.1.0 • Public • Published

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)

Readme

Keywords

none

Package Sidebar

Install

npm i i18n-wrapper-webpack-plugin

Weekly Downloads

1

Version

0.1.0

License

none

Last publish

Collaborators

  • degree53