[wip] Improved support for I18n / Translations in Webpack config

https://community.openproject.org/work_packages/5697
https://community.openproject.org/work_packages/17241
https://community.openproject.org/work_packages/14679
'env' is not defined.