Sha256: 546781036b8b3358a612b6871a53265f4a2afe91a10e78577b87d21ac223346d
Contents?: true
Size: 826 Bytes
Versions: 15
Compression:
Stored size: 826 Bytes
Contents
module Jets::Internal # Reference: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/i18n_railtie.rb class I18nEngine < ::Jets::Turbine config.i18n = ActiveSupport::OrderedOptions.new config.i18n.turbines_load_path = [] config.i18n.load_path = [] config.i18n.fallbacks = ActiveSupport::OrderedOptions.new # Set the i18n configuration after initialization since a lot of # configuration is still usually done in application initializers. config.after_initialize do |app| I18n.load_path |= app.config.i18n.turbines_load_path.flat_map(&:existent) I18n.load_path |= app.config.i18n.load_path.flat_map(&:existent) I18n.load_path |= Dir["#{app.root}/config/locales/*.yml"] I18n.load_path.uniq! I18n.backend.load_translations end end end
Version data entries
15 entries across 15 versions & 1 rubygems