correction de la variable d'environnement 'LOCALIZATION_ENABLED'

This commit is contained in:
lydiasan 2021-05-25 10:05:52 +02:00
parent 42153d1d37
commit 71069c0e1b

View file

@ -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