diff options
author | bogdanvlviv <bogdanvlviv@gmail.com> | 2019-01-04 15:55:39 +0200 |
---|---|---|
committer | bogdanvlviv <bogdanvlviv@gmail.com> | 2019-01-04 16:04:55 +0200 |
commit | 939b85af709d02da569be6a6009f732d5a9d3742 (patch) | |
tree | 85e641f33cacd265ca8991a0641b802177b72d66 | |
parent | a5a22c4ea142974117d6afbde68a8074617bda0c (diff) | |
download | rails-939b85af709d02da569be6a6009f732d5a9d3742.tar.gz rails-939b85af709d02da569be6a6009f732d5a9d3742.tar.bz2 rails-939b85af709d02da569be6a6009f732d5a9d3742.zip |
Fix example of I18n setting in the guide [ci skip]
Since #34356 logging `locale` value is more correct
-rw-r--r-- | guides/source/i18n.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/i18n.md b/guides/source/i18n.md index 10b1a6de7e..08cad375ef 100644 --- a/guides/source/i18n.md +++ b/guides/source/i18n.md @@ -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 |