Newer
Older
dmpopidor / config / initializers / locale.rb
@Brian Riley Brian Riley on 11 Aug 2016 670 bytes Development (#17)
module DMPRoadmap
  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-US'

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