1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Merge pull request #35052 from schuetzm/silence-i18n-fallback-deprecation

Describe how to silence the deprecation warning about empty I18n fall…
This commit is contained in:
Kasper Timm Hansen 2019-04-17 20:24:33 +02:00 committed by GitHub
commit 7230447d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -97,7 +97,8 @@ module I18n
If you desire the default locale to be included in the defaults, please
explicitly configure it with `config.i18n.fallbacks.defaults =
[I18n.default_locale]` or `config.i18n.fallbacks = [I18n.default_locale,
{...}]`
{...}]`. If you want to opt-in to the new behavior, use
`config.i18n.fallbacks.defaults = [nil, {...}]`.
MSG
args.unshift I18n.default_locale
end