i18n-webpack-plugin-jc
v0.3.0
Published
Embed localization into your bundle
Downloads
3
Readme
npm i -D i18n-webpack-plugin
see webpack/webpack/examples/i18n.
plugins: [
...
new I18nPlugin(languageConfig, optionsObj)
],
optionsObj.functionName
: the default value is__
, you can change it to other function name.optionsObj.failOnMissing
: the default value isfalse
, which will show a warning message, if the mapping text cannot be found. If set totrue
, the message will be an error message.optionsObj.hideMessage
: the default value isfalse
, which will show the warning/error message. If set totrue
, the message will be hide.