mirror of
https://github.com/internetee/registry.git
synced 2025-07-03 09:43:36 +02:00
Load all translation files from config/locales
This commit is contained in:
parent
690670bdf3
commit
c9530a42cb
1 changed files with 2 additions and 3 deletions
|
@ -26,9 +26,8 @@ module Registry
|
||||||
config.time_zone = ENV['time_zone'] || 'Tallinn' # NB! It should be defined,
|
config.time_zone = ENV['time_zone'] || 'Tallinn' # NB! It should be defined,
|
||||||
# otherwise ActiveRecord usese other class internally.
|
# otherwise ActiveRecord usese other class internally.
|
||||||
|
|
||||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.yml').to_s]
|
||||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
config.i18n.default_locale = :en
|
||||||
# config.i18n.default_locale = :de
|
|
||||||
|
|
||||||
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
|
config.paths.add File.join('app', 'api'), glob: File.join('**', '*.rb')
|
||||||
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
|
config.autoload_paths += Dir[Rails.root.join('app', 'api', '*')]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue