Sha256: 41780e18fc7dab879a033b504dc2ca28589913560fd84933bf53aba459c37f85
Contents?: true
Size: 406 Bytes
Versions: 8
Compression:
Stored size: 406 Bytes
Contents
begin require 'rails' module I18n class Railtie < ::Rails::Railtie #:nodoc: initializer 'rails-i18n' do |app| I18n.load_path << Dir[File.join(File.expand_path(File.dirname(__FILE__) + '/../../config/locales'), '*.yml')] I18n.load_path.flatten! end end end rescue LoadError # rubocop:disable HandleExceptions # We don't autoload locales in non-rails-projects end
Version data entries
8 entries across 8 versions & 1 rubygems