We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
.0
#457 introduced a bug where 0 was no longer considered an integer, and so lookups of .0 keys fail:
0
(byebug) I18n.normalize_keys(:se, "fields.day.relative.0", nil, nil) [:se, :fields, :day, :relative, :"0"] (byebug) I18n.normalize_keys(:se, "fields.day.relative.1", nil, nil) [:se, :fields, :day, :relative, 1]
Note that 1 gets normalized as an Integer, but 0 does not.
1
0 would get parsed as an integer.
0 gets parsed as a symbol
Tested with v1.8.11, present since v1.5.1
v1.8.11
v1.5.1
Could fix the regex to include 0. PR incoming.
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
What I tried to do
#457 introduced a bug where
0
was no longer considered an integer, and so lookups of.0
keys fail:Note that
1
gets normalized as an Integer, but0
does not.What I expected to happen
0
would get parsed as an integer.What actually happened
0
gets parsed as a symbolVersions of i18n, rails, and anything else you think is necessary
Tested with
v1.8.11
, present sincev1.5.1
Potential solution?
Could fix the regex to include
0
. PR incoming.The text was updated successfully, but these errors were encountered: