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