Skip to content
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

[BUG] I18n.t() with nil and default results in ArgumentError #551

Open
key88sf opened this issue Jan 13, 2021 · 0 comments
Open

[BUG] I18n.t() with nil and default results in ArgumentError #551

key88sf opened this issue Jan 13, 2021 · 0 comments

Comments

@key88sf
Copy link

key88sf commented Jan 13, 2021

What I tried to do

In a HAML partial, calling t(nil, scope: "my.scope", default: "No value")

What I expected to happen

Should result in the value of "No value" being returned.

What actually happened

I18n::ArgumentError

Versions of i18n, rails, and anything else you think is necessary

Rails 6.1
I18n 1.8.7


Bonus points for providing an application or a small code example which reproduces the issue.

Thanks! ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant