end
end
- I18n.locale = request.compatible_language_from(I18n.available_locales)
-
- logger.info "Selected locale #{I18n.locale} from #{request.user_preferred_languages.inspect}"
+ I18n.locale = request.compatible_language_from(I18n.available_locales) || I18n.default_locale
response.headers['Content-Language'] = I18n.locale.to_s
end