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

'__dirname' is not defined.