-
-
Notifications
You must be signed in to change notification settings - Fork 408
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
A false default is inconsistent #379
Comments
Hi @jcoyne, thanks for getting in touch. I am unable to reproduce this issue within a new Rails app. I am using i18n 0.8.6 and Rails 5.1.2. I've created a new view and I've put this content in it:
Both return "false" for me. I do not see this "translation missing" error as you've shown. Could you please provide me with an application which reproduces this issue? Thanks! |
@jcoyne Please provide steps to reproduce this, otherwise I will be marking this issue as stale and closing it. |
I see this in a fresh Rails 5.1.4 install, with i18n 0.9.1 For me, However, |
Thank you for filing this issue. I do not have any available time atm to investigate it. If you're not seeing this bug with Rails but you are seeing this bug with Rails then I would consider that a Rails bug. You should file an issue on their repo also, and link this issue to it. |
I tried with only i18n and I could reproduce this issue:
I also tested with 0.8.1 and this behavior is the same:
|
What I tried to do
Passing a default with a single element array containing
false
seems to not give any default behavior. This is inconsistent with a default offalse
(no wrapping array) or an array of strings.I believe this is a regression in 0.8.3.
This is a problem for me because when I use the rails'
TranslationHelper#t
method, it wraps the default in an array automatically.What I expected to happen
What actually happened
Versions of i18n, rails, and anything else you think is neccessary
version 0.8.6 has this problem. I believe this behavior was changed in 0.8.3
Bonus points for providing an application or a small code example which reproduces the issue.
Thanks! ❤️
The text was updated successfully, but these errors were encountered: