Moves i18n initialisation to application.rb
This commit is contained in:
@@ -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.
|
||||
|
||||
@@ -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}')]
|
||||
Reference in New Issue
Block a user