Moves i18n initialisation to application.rb

This commit is contained in:
kikito
2015-08-06 18:31:44 +02:00
parent b1acbeb39d
commit 17fb44c70b
2 changed files with 5 additions and 6 deletions

View File

@@ -20,6 +20,11 @@ module Participacion
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
config.i18n.default_locale = :es
config.i18n.available_locales = [:en, :es]
# Add the new directories to the locales load path
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
config.assets.paths << Rails.root.join("app", "assets", "fonts")
# Do not swallow errors in after_commit/after_rollback callbacks.

View File

@@ -1,6 +0,0 @@
I18n.available_locales = [:en, :es]
I18n.default_locale = :es
# Add the new directories to the locales load path
I18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]