correction de la variable d'environnement 'LOCALIZATION_ENABLED'
This commit is contained in:
parent
42153d1d37
commit
71069c0e1b
1 changed files with 1 additions and 1 deletions
|
@ -313,7 +313,7 @@ class ApplicationController < ActionController::Base
|
|||
locale = nil
|
||||
if cookies[:locale]
|
||||
locale = cookies[:locale]
|
||||
elsif ENV.fetch('LOCALIZATION_ENABLED', 'false') == 'true'
|
||||
elsif ENV['LOCALIZATION_ENABLED'] == 'enabled'
|
||||
locale = http_accept_language.compatible_language_from(I18n.available_locales)
|
||||
else
|
||||
locale = I18n.default_locale
|
||||
|
|
Loading…
Reference in a new issue