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:
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.
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:
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:
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.