Sha256: 15f08ce63e164fe37e43b012fd5e512383853536a5d5e0241e154d4255a775fa

Contents?: true

Size: 331 Bytes

Versions: 5

Compression:

Stored size: 331 Bytes

Contents

module AlchemyI18n
  class Engine < ::Rails::Engine
    initializer "alchemy-i18n" do |app|
      locales = Array(app.config.i18n.available_locales)
      pattern = locales.empty? ? "*" : "{#{locales.join ","}}"
      files = Dir[root.join("locales", "alchemy.#{pattern}.yml")]
      I18n.load_path.concat(files)
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
alchemy_i18n-3.2.0 lib/alchemy_i18n/engine.rb
alchemy_i18n-3.1.0 lib/alchemy_i18n/engine.rb
alchemy_i18n-3.0.2 lib/alchemy_i18n/engine.rb
alchemy_i18n-3.0.1 lib/alchemy_i18n/engine.rb
alchemy_i18n-3.0.0 lib/alchemy_i18n/engine.rb