Changing the way we add i18n into the middleware config for devtools

Currently i18n is not visible to the devtools dust plugin so it always treats it as no i18n required and compiles the dust and fails.