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
Better error message when I18n::TranslationMissingData
is rescued.
#375
Comments
@radar Thanks :) The new translation looks alittle odd to me though..
It seems like it always assume that there will always be a count key? |
The new error message from #371 is only for pluralization, where there will always be a count. (The 'count' part if it was already part of the message; the key part at the end is what got added.) This is a separate issue. |
I can't replicate this. Here's what I get, which I think is sensible behavior:
|
@tgxworld It looks like maybe somewhere in your environment, The gem lets you define an arbitrary handler for that error via |
@ragesoss Thanks for clarifying 👍 It does look like we have
|
What I tried to do
What I expected to happen
Versions of i18n, rails, and anything else you think is neccessary
I would like to propose a change for the default string that is returned when a
I18n::MissingTranslationData
is raised.My confusion comes from the fact that
translation missing
can refer to a case where the key has not been defined as well as the case where the key has been defined but the variables are incorrect. I feel that returningtranslation data missing: en.some_key
would be a much more accurate error message.Thank you for your time! ❤️
The text was updated successfully, but these errors were encountered: