method

add_engine_locales

rails latest stable - Class: Rails::Plugin::Loader

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.8) is shown here.

add_engine_locales()
protected

No documentation available.

# 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