Fix example of I18n setting in the guide [ci skip]

Since #34356 logging `locale` value is more correct
This commit is contained in:
bogdanvlviv 2019-01-04 15:55:39 +02:00
parent a5a22c4ea1
commit 939b85af70
No known key found for this signature in database
GPG Key ID: E4ACD76A6DB6DFDD

@ -299,7 +299,7 @@ A trivial implementation of using an `Accept-Language` header would be:
def switch_locale(&action)
logger.debug "* Accept-Language: #{request.env['HTTP_ACCEPT_LANGUAGE']}"
locale = extract_locale_from_accept_language_header
logger.debug "* Locale set to '#{I18n.locale}'"
logger.debug "* Locale set to '#{locale}'"
I18n.with_locale(locale, &action)
end