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
I'm not sure how to categorise this, as if a bug or a feature request, but certainly it is a bit of a missed expectation of how the fallback map / hash assignment worked :) And I'm leaving it here also as a reference for people to find.
I was expecting that providing a hash with default to I18n.fallbacks.map would automatically populate the I18n.fallbacks.defaults
What actually happened
I still got the Rails deprecation warning DEPRECATION WARNING: Using I18n fallbacks with an empty defaults sets the defaults to include the default_locale (...), meaning that fallbacks defaults was left empty.
Hello,
I'm not sure how to categorise this, as if a bug or a feature request, but certainly it is a bit of a missed expectation of how the fallback map / hash assignment worked :) And I'm leaving it here also as a reference for people to find.
What I tried to do
In a Rails environment:
What I expected to happen
I was expecting that providing a hash with default to
I18n.fallbacks.map
would automatically populate theI18n.fallbacks.defaults
What actually happened
I still got the Rails deprecation warning
DEPRECATION WARNING: Using I18n fallbacks with an empty defaults sets the defaults to include the default_locale (...)
, meaning that fallbacksdefaults
was left empty.And I needed to explicitly assign the defaults:
Versions of i18n, rails, and anything else you think is necessary
In rails 6.0
The text was updated successfully, but these errors were encountered: