Skip to content

Commit

Permalink
config/application.rb: Update locales path
Browse files Browse the repository at this point in the history
Allows [locale-code].yml files to be loaded
even in subdirectories of the 'config/locales' directory.

This allows us to keep things organized,
with one translation subdirectory per locale.
  • Loading branch information
DeeDeeG committed Jan 9, 2018
1 parent 28340b4 commit 5e15069
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,8 @@ class Application < Rails::Application
resource "/api/*", headers: :any, methods: [:get, :post, :options]
end
end

# I18n stuff
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
end
end

0 comments on commit 5e15069

Please sign in to comment.