Newer
Older
dmpopidor / config / initializers / locale.rb
@Brian Riley Brian Riley on 22 Jul 2016 663 bytes Rails 4.2 (#10)
module DMPonline4
  class Application < Rails::Application

    # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
    # Set the list of locales that we will support here (ie those for which we have translations for the DMPOnline application)
    # tell the I18n library where to find your translations
    config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
    # set default locale
    # in config/initializers/locale.rb

    # set default locale to something other than :en
    config.i18n.default_locale = :'en-UK'

    # set fallback locale
    config.i18n.fallbacks = true
  end
end