-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Fallback translation without available locales enforcement #1377
Fallback translation without available locales enforcement #1377
Conversation
The previous spec would fail to cover the new code, and would pass without the changes.
1b00eb9
to
072a169
Compare
test/test_locale.rb
Outdated
I18n.available_locales += [:en] | ||
end | ||
|
||
def test_with_locale_does_not_fail_if_locale_not_available_in_the_application_and_enforce_available_locales_is_set |
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.
This is one of the longest name methods that I've ever seen in my life.
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.
Actually the last part can be removed since what this patch is doing is making this independent of the specific enforce_available_locales
setting value! 😄 Let me update it!
072a169
to
b4bde1b
Compare
b4bde1b
to
f156617
Compare
@vbrazo when is this going to be released? |
Sorry for the delay. It's near the top of my todo list to make a release. :) |
As I commented here I still have the same issue after this patch. |
…y#1377) * Fallback translation without available locales enforcing * Available locales can't be edited in place The previous spec would fail to cover the new code, and would pass without the changes. * Add ensures for max safety * Add tests for `with_locale` method
I rebased #1039, removed unrelated stuff, fixed some issues that I found and completed some missing tests.
This PR fixes #1030.