set `i18n.enforce_available_locales` before `i18n.default_locale`.
Merge pull request #13190 from senny/set_enforce_available_locales_first

Set `i18n.enforce_available_locales` before any other configuration option.