Load any translation files in subdirectories (#15077)
* Load any translation files in subdirectories This ensures files in config/locales/views/ are loaded, for example. * Move i18n load path additions from initializer to rails config
This commit is contained in:
parent
68e6e61141
commit
b2203fbe0d
1 changed files with 2 additions and 0 deletions
|
|
@ -55,6 +55,8 @@ module PracticalDeveloper
|
|||
|
||||
config.middleware.use Rack::Deflater
|
||||
|
||||
config.i18n.load_path += Dir[Rails.root.join("config/locales/**/*.yml")]
|
||||
|
||||
config.i18n.fallbacks = [:en]
|
||||
|
||||
# Globally handle Pundit::NotAuthorizedError by serving 404
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue