aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVipul A M <vipulnsward@gmail.com>2019-01-04 17:08:25 +0300
committerGitHub <noreply@github.com>2019-01-04 17:08:25 +0300
commitde50002723dfe9324b9dbe4cdfd18c597746f615 (patch)
treea48bbb77d140ab6693c45a4ef1b3fa118dfdb95e
parent725c6422e763cd676b1dc70e4d3d392b4fd5b43f (diff)
parent939b85af709d02da569be6a6009f732d5a9d3742 (diff)
downloadrails-de50002723dfe9324b9dbe4cdfd18c597746f615.tar.gz
rails-de50002723dfe9324b9dbe4cdfd18c597746f615.tar.bz2
rails-de50002723dfe9324b9dbe4cdfd18c597746f615.zip
Merge pull request #34862 from bogdanvlviv/fix-i18n-guide
Fix example of I18n setting in the guide [ci skip]
-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