webpack-contrib / i18n-webpack-plugin

[DEPRECATED] Embed localization into your bundle
MIT License
318 stars 74 forks source link

hideMessage does not hide messages #44

Closed StephanBijzitter closed 7 years ago

StephanBijzitter commented 7 years ago

For our local development environment, we wish to disable translations as we are perfectly happy with the English keys as values.

So, in our webpack-dev-server, I added the following config:

new I18nPlugin({}, {
    hideMessage: true,
    failOnMissing: false
})

We need this, as without it the __ function will be undefined causing the application to crash.

Now, everything works, except that it does not hide the warnings. For example:

screen shot 2017-04-14 at 20 28 06

As the translation keys are uploaded by our CI, and the translation values are downloaded, we do not need the files locally, but with these warnings our browser consoles start filling up rather quickly.