gem http_accept_language installed and (de)activable with feature flag
This commit is contained in:
parent
ea16e71a8d
commit
af25fdd77c
4 changed files with 13 additions and 3 deletions
|
@ -25,11 +25,12 @@ module TPS
|
|||
# Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC.
|
||||
config.time_zone = 'Paris'
|
||||
|
||||
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# The default locale is :fr and all translations from config/locales/*.rb,yml are auto loaded.
|
||||
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
||||
config.i18n.default_locale = :fr
|
||||
config.i18n.load_path += Dir[Rails.root.join('config', 'locales', '**', '*.{rb,yml}')]
|
||||
config.i18n.available_locales = [:fr]
|
||||
config.i18n.available_locales = [:fr, :en]
|
||||
config.i18n.fallbacks = [:fr]
|
||||
|
||||
config.assets.paths << Rails.root.join('app', 'assets', 'javascript')
|
||||
config.assets.paths << Rails.root.join('app', 'assets', 'fonts')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue