aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source/i18n.md
diff options
context:
space:
mode:
authorbogdanvlviv <bogdanvlviv@gmail.com>2019-01-04 15:55:39 +0200
committerbogdanvlviv <bogdanvlviv@gmail.com>2019-01-04 16:04:55 +0200
commit939b85af709d02da569be6a6009f732d5a9d3742 (patch)
tree85e641f33cacd265ca8991a0641b802177b72d66 /guides/source/i18n.md
parenta5a22c4ea142974117d6afbde68a8074617bda0c (diff)
downloadrails-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
Diffstat (limited to 'guides/source/i18n.md')
-rw-r--r--guides/source/i18n.md2
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