ruby-i18n / i18n

Internationalization (i18n) library for Ruby
MIT License
986 stars 411 forks source link

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

Open key88sf opened 3 years ago

key88sf commented 3 years ago

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! :heart: