instance method
add_engine_locales
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
add_engine_locales()
No documentation comment.
Source
# File railties/lib/rails/plugin/loader.rb, line 88
def add_engine_locales
# reverse it such that the last engine can overwrite translations from the first, like with routes
locale_files = engines.select(&:localized?).collect(&:locale_files).reverse.flatten
I18n.load_path += locale_files - I18n.load_path
end
Defined in railties/lib/rails/plugin/loader.rb line 88
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in Rails::Plugin::Loader