mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Add I18n to eager_load_namespaces
This commit is contained in:
parent
3e4c64248f
commit
9731bcbee7
3 changed files with 4 additions and 2 deletions
|
@ -71,7 +71,7 @@ PATH
|
||||||
marcel (~> 0.3.1)
|
marcel (~> 0.3.1)
|
||||||
activesupport (6.1.0.alpha)
|
activesupport (6.1.0.alpha)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (~> 5.1)
|
minitest (~> 5.1)
|
||||||
tzinfo (~> 1.1)
|
tzinfo (~> 1.1)
|
||||||
zeitwerk (~> 2.2)
|
zeitwerk (~> 2.2)
|
||||||
|
|
|
@ -33,7 +33,7 @@ Gem::Specification.new do |s|
|
||||||
# NOTE: Please read our dependency guidelines before updating versions:
|
# NOTE: Please read our dependency guidelines before updating versions:
|
||||||
# https://edgeguides.rubyonrails.org/security.html#dependency-management-and-cves
|
# https://edgeguides.rubyonrails.org/security.html#dependency-management-and-cves
|
||||||
|
|
||||||
s.add_dependency "i18n", ">= 0.7", "< 2"
|
s.add_dependency "i18n", ">= 1.6", "< 2"
|
||||||
s.add_dependency "tzinfo", "~> 1.1"
|
s.add_dependency "tzinfo", "~> 1.1"
|
||||||
s.add_dependency "minitest", "~> 5.1"
|
s.add_dependency "minitest", "~> 5.1"
|
||||||
s.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.2"
|
s.add_dependency "concurrent-ruby", "~> 1.0", ">= 1.0.2"
|
||||||
|
|
|
@ -12,6 +12,8 @@ module I18n
|
||||||
config.i18n.load_path = []
|
config.i18n.load_path = []
|
||||||
config.i18n.fallbacks = ActiveSupport::OrderedOptions.new
|
config.i18n.fallbacks = ActiveSupport::OrderedOptions.new
|
||||||
|
|
||||||
|
config.eager_load_namespaces << I18n
|
||||||
|
|
||||||
# Set the i18n configuration after initialization since a lot of
|
# Set the i18n configuration after initialization since a lot of
|
||||||
# configuration is still usually done in application initializers.
|
# configuration is still usually done in application initializers.
|
||||||
config.after_initialize do |app|
|
config.after_initialize do |app|
|
||||||
|
|
Loading…
Reference in a new issue