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


https://community.openproject.org/work_packages/17241
https://community.openproject.org/work_packages/14679
Line is too long.<br>'__dirname' is not defined.<br>'env' is not defined.