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
If translate method raise an exception with empty string, so nil key should raise too?
This works: > I18n.t(nil) "translation missing: pt-BR.no key" but this not: > I18n.t("") I18n::ArgumentError: I18n::ArgumentError
> I18n.t(nil) "translation missing: pt-BR.no key"
> I18n.t("") I18n::ArgumentError: I18n::ArgumentError
See also: https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L151 #136
The text was updated successfully, but these errors were encountered:
I think you're right, nil key should raise an I18n::ArgumentError. Pull requests welcome, just sayin' :)
nil
I18n::ArgumentError
On 12 Jun 2013, at 16:24, Pedro Souza notifications@github.com wrote:
If translate method raise an exception with empty string, so nil key should raise too? This works: I18n.t(nil) "translation missing: pt-BR.no key" but this not: I18n.t("") I18n::ArgumentError: I18n::ArgumentError See also: https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L151 #136 — Reply to this email directly or view it on GitHub.
This works:
I18n.t(nil) "translation missing: pt-BR.no key" but this not: I18n.t("") I18n::ArgumentError: I18n::ArgumentError
— Reply to this email directly or view it on GitHub.
Sorry, something went wrong.
👍
This will be fixed by #236.
No branches or pull requests
If translate method raise an exception with empty string, so nil key should raise too?
This works:
> I18n.t(nil) "translation missing: pt-BR.no key"
but this not:
> I18n.t("") I18n::ArgumentError: I18n::ArgumentError
See also:
https://github.com/svenfuchs/i18n/blob/master/lib/i18n.rb#L151
#136
The text was updated successfully, but these errors were encountered: