-
Notifications
You must be signed in to change notification settings - Fork 115
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
Crashing French translations #107
Comments
It looks like this is a legit bug. It would be great if you could build a repro spec for this? Thanks. |
It's only about float numbers conversion, and apparently :en language fails too. This might be related to my gems, but I have different error for :en Below is a test for test "it should translate integer and float numbers or fallback to a known language traslation" do
assert_block("It works with integers") do # Note this one already passes (for :fr at least)
# Ideally add a loop here to test for all languages of the I18n
I18n.with_locale(:fr) do
assert_block("Integer translation for :fr") do
42.to_words == "quarante-deux" or 42.to_words == "forty-two" # Replace by default translation
end
end
end
assert_block("It works with floats") do # This is the one that doesn't
# Ideally add a loop here to test for all languages of the I18n
I18n.with_locale(:fr) do
assert_block("Float translation for :fr") do
(42.42).to_words == "quarante-deux virgule quarante-deux" or (42.42).to_words == "forty-two coma forty-two" # Replace by default translation
end
end
end
end |
Any solution for that? |
I have the same problem, is there any solution? |
I had fixed the problem on my fork of the repo. It was quite a long time ago, and I'm not even sure it's still compatible with the current master. |
There's a PR in #111, but it needs tests. Someone wants to finish it up? |
Closed in #144 |
I try to translate some figures into French, but I run into a
uninitialized constant NumbersAndWords::Strategies::FiguresConverter::Decorators::Fr error
Is there an option somewhere to switch back to english translations if a problem like this appears ?
The text was updated successfully, but these errors were encountered: