Skip to content

Commit

Permalink
Fix example of I18n setting in the guide [ci skip]
Browse files Browse the repository at this point in the history
Since rails#34356 logging `locale` value is more correct
  • Loading branch information
bogdanvlviv committed Jan 4, 2019
1 parent a5a22c4 commit 939b85a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion guides/source/i18n.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 939b85a

Please sign in to comment.