From d4ddf7b72f52597d0c0f90794cf52f6d0d687d4e Mon Sep 17 00:00:00 2001 From: Rich Seviora Date: Sun, 29 Jan 2017 14:51:05 -0800 Subject: Added warning for reserved YAML keywords. Update i18n.md Addressed Feedback --- .../rails/generators/rails/app/templates/config/locales/en.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'railties/lib/rails') diff --git a/railties/lib/rails/generators/rails/app/templates/config/locales/en.yml b/railties/lib/rails/generators/rails/app/templates/config/locales/en.yml index 0653957166..decc5a8573 100644 --- a/railties/lib/rails/generators/rails/app/templates/config/locales/en.yml +++ b/railties/lib/rails/generators/rails/app/templates/config/locales/en.yml @@ -16,6 +16,16 @@ # # This would use the information in config/locales/es.yml. # +# The following keys must be escaped otherwise they will not be retrieved by +# the default I18n backend: +# +# true, false, on, off, yes, no +# +# Instead, surround them with single quotes. +# +# en: +# 'true': 'foo' +# # To learn more, please read the Rails Internationalization guide # available at http://guides.rubyonrails.org/i18n.html. -- cgit v1.2.3