You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
beginrequire"bundler/inline"rescueLoadError=>e
$stderr.puts"Bundler version 1.10 or later is required. Please update your Bundler"raiseeendgemfile(true)dosource"https://rubygems.org"gem"minitest"gem"i18n","~> 1.8.5"endrequire"minitest/autorun"require"logger"I18n.available_locales=[:en]classBugTest < Minitest::Testdeftest_i18n_t_with_original_backendassert_nilI18n.t(nil)enddeftest_i18n_t_with_fallback_backendoriginal_backend=I18n.backendfallback_backend=Class.new(original_backend.class)doincludeI18n::Backend::FallbacksendI18n.backend=fallback_backend.newassert_nilI18n.t(nil)ensureI18n.backend=original_backendendend
What I expected to happen
Expect I18n.t(nil) to return nil (or throw MissingTranslation) both in base backend and fallbacks backend.
What actually happened
The behavior is not the same. It may cause unexpected problems when a rails app get released.
Versions of i18n, rails, and anything else you think is necessary
rails (5.2.4.4)
i18n (1.8.5)
The text was updated successfully, but these errors were encountered:
What I tried to do
See rails/rails#40676 for more details.
What I expected to happen
Expect
I18n.t(nil)
to return nil (or throw MissingTranslation) both in base backend and fallbacks backend.What actually happened
The behavior is not the same. It may cause unexpected problems when a rails app get released.
Versions of i18n, rails, and anything else you think is necessary
rails (5.2.4.4)
i18n (1.8.5)
The text was updated successfully, but these errors were encountered: