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
Issue 2802 #2890
Issue 2802 #2890
Conversation
…er bug when locale != :en
Needs tests |
Can you test that using i18n master? |
… with empty translation store
cc @spastorino |
This pull request cannot be automatically merged. Please rebase it against the master. I'll be glad to ask someone from the Core Team to review it. Thanks. |
Also we need to fix the others number helpers. |
I've rebased the patch locally and tested, and it works. What I'm thinking about is that we already have a way to fallback using i18n and If that does not solve, I'd propose fallbacking manually to |
The OP used the same approach as c7e6777 for currencies, which also uses constants rather than I also think |
Yeah, I've seen that change where they used constants. I don't know which was the decision at that time, but I'll find out :). Using |
Just a quick update, I'm working on a solution on top of this one, that includes the other number helpers. |
@carlosantoniodasilva great!!!!!!!!!!!!!!!!!! ❤️ |
Action Pack already comes with a default locale fine for :en, that is always loaded. We can just fallback to this locale for defaults, if values for the current locale cannot be found. Closes rails#4420, rails#2802, rails#2890.
Action Pack already comes with a default locale fine for :en, that is always loaded. We can just fallback to this locale for defaults, if values for the current locale cannot be found. Closes rails#4420, rails#2802, rails#2890.
It has been merged to master in 56627b6. Please let us know if you have any other issue after this. Thanks. |
Added default number values to avoid precision/separator/delimiter bug when locale != :en
With default_locale different from :en and no region locale file, precision, separator and delimiter where not defaulted, resulting in errors such as :