Sha256: 98fd7653fcd0edc268522dd2b59e1f37476a90dd0d0992e3a5914b528512d436

Contents?: true

Size: 959 Bytes

Versions: 3

Compression:

Stored size: 959 Bytes

Contents

if Rails.env.development?
  I18nAdminUtils.config do |config|

    #Specify the backend if you are using the chain(it will use the first one by default)
    #config.backend = 'I18n::Backend::Simple'
    #config.backend = 'I18n::Backend::ActiveRecord'

    #Model that contains the translation must have locale, key and value columns
    config.translation_model = Translation

    #Reload the translation after they have been updated
    config.reload_translation_after_update = true

    #List of locales used in your application
    config.locales = ['en']


    #List of folder where the app will look for the use of the t() method
    config.search_folders = ["#{Rails.root}/app"]

    #Yml files if you are using a yml backend
    config.yml_file = "#{Rails.root}/config/locales/i18_admin_utils"

    #To exclude some folder included in the search_folders
    #Not working yet!
    #config.search_folders_exclude = []
  end
end

Version data entries

3 entries across 2 versions & 1 rubygems

Version Path
i18n_admin_utils-1.1.0 test/tmp/config/initializers/i18n_admin_utils.rb
i18n_admin_utils-1.0.0 lib/generators/i18n_admin_utils/templates/initializer.rb
i18n_admin_utils-1.0.0 test/tmp/config/initializers/i18n_admin_utils.rb