losogudok / i18n-webpack-plugin

Embed localization into your bundle

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

i18n plugin for webpack

Usage

see webpack/webpack/examples/i18n.

Options

plugins: [
  ...
  new I18nPlugin(languageConfig, optionsObj)
],
  • optionsObj.functionName: the default value is __, you can change it to other function name.
  • optionsObj.failOnMissing: the default value is false, which will show a warning message, if the mapping text cannot be found. If set to true, the message will be an error message.
  • optionsObj.hideMessage: the default value is false, which will show the warning/error message. If set to true, the message will be hide.

License

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

About

Embed localization into your bundle


Languages

Language:JavaScript 100.0%