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

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