Merge pull request #5660 from consuldemocracy/custom_locales_order
Fix custom locales not taking precedence
This commit is contained in:
@@ -113,7 +113,9 @@ module Consul
|
||||
"val" => "es"
|
||||
}]
|
||||
|
||||
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "**[^custom]*", "*.{rb,yml}")]
|
||||
initializer :exclude_custom_locales_automatic_loading, before: :add_locales do
|
||||
paths.add "config/locales", glob: "**[^custom]*/*.{rb,yml}"
|
||||
end
|
||||
config.i18n.load_path += Dir[Rails.root.join("config", "locales", "custom", "**", "*.{rb,yml}")]
|
||||
|
||||
config.after_initialize do
|
||||
|
||||
Reference in New Issue
Block a user