webpack-contrib / i18n-webpack-plugin

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

Possibility to dynamically load localized bundle as chunk #67

Open Ziker22 opened 6 years ago

Ziker22 commented 6 years ago

Hi guys, First of all thanks for great work. I have a question though. In my app the only way to determine which language is being used is to visit login screen then let user select lang value in combobox then hit login and after that im 100% sure about locale (it can be used in app you have to logout/login again) So my question is . Is there some way to code split my app to login and everything else and then load lets say bundle_de_DE.js after button is clicked ?

davidfurlong commented 6 years ago

Yes. But you'll probably want to check out the code splitting docs, this isn't relevant to this package.