-
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix i18n fallback configuration conflicts with environment configurations #6843
Conversation
config/environments/production.rb
Outdated
@@ -56,7 +56,7 @@ | |||
|
|||
# Enable locale fallbacks for I18n (makes lookups for any locale fall back to | |||
# the I18n.default_locale when a translation cannot be found). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment still accurate? Seems like it should say something more like "make lookups for any locale fall back to 'en'"?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No. Addressed in 7820893. Thanks for pointing out this.
To clarify how this works for my own benefit:
In addition:
Does that all sound right? |
Yes. And it has been the expected behavior, so it is a bug if it doesn't work as you stated. (That's why this pull request is labelled bug here.) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i just touched this code recently for cybrespace-specific locale changes, so i can confirm this is the correct change to make. thanks aki!
(to be clear, the bug here is that we were setting |
This fixes a bug reported at #6841 (comment).