You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Nov 15, 2019. It is now read-only.
What is the current behavior?
If null is passed as localization argument while creating new I18nPlugin instance, warning about missing localizations occurs.
If the current behavior is a bug, please provide the steps to reproduce.
WARNING in ./example.js
Missing localization: Missing Text
webpack.config.js:
constlanguages={en: null,de: require("./de.json")};module.exports=Object.keys(languages).map(function(language){return{
...
plugins: [newI18nPlugin(languages[language])// in case 'language' is 'en' we get 'null']...});
What is the expected behavior?
If passing null is recommended way how not to translate default language, plugin should behave differently than if try to get missing translation.
Bug report
What is the current behavior?
If
null
is passed aslocalization
argument while creating new I18nPlugin instance, warning about missing localizations occurs.If the current behavior is a bug, please provide the steps to reproduce.
"build": "webpack"
npm run build
Build succeeds but throws following warning:
webpack.config.js:
What is the expected behavior?
If passing
null
is recommended way how not to translate default language, plugin should behave differently than if try to get missing translation.Other relevant information:
webpack version: 4.29.6
Node.js version: v11.12.0
Operating System: macOS Mojave 10.14.4
The text was updated successfully, but these errors were encountered: