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:
commit
7230447d5a
1 changed files with 2 additions and 1 deletions
|
@ -97,7 +97,8 @@ module I18n
|
||||||
If you desire the default locale to be included in the defaults, please
|
If you desire the default locale to be included in the defaults, please
|
||||||
explicitly configure it with `config.i18n.fallbacks.defaults =
|
explicitly configure it with `config.i18n.fallbacks.defaults =
|
||||||
[I18n.default_locale]` or `config.i18n.fallbacks = [I18n.default_locale,
|
[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
|
MSG
|
||||||
args.unshift I18n.default_locale
|
args.unshift I18n.default_locale
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue