Merge pull request #3663 from consul/custom_locales_check
Load custom locales after everything is loaded
This commit is contained in:
@@ -54,7 +54,8 @@ module Consul
|
|||||||
"it" => "es",
|
"it" => "es",
|
||||||
"pt-BR" => "es"
|
"pt-BR" => "es"
|
||||||
}
|
}
|
||||||
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**", "*.{rb,yml}")]
|
|
||||||
|
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**[^custom]*", "*.{rb,yml}")]
|
||||||
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "custom", "**", "*.{rb,yml}")]
|
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "custom", "**", "*.{rb,yml}")]
|
||||||
|
|
||||||
config.after_initialize do
|
config.after_initialize do
|
||||||
|
|||||||
Reference in New Issue
Block a user