Update app/controllers/application_controller.rb
Co-authored-by: Pierre de La Morinerie <pierre.de_la_morinerie@beta.gouv.fr>
This commit is contained in:
parent
71069c0e1b
commit
e85dcf4c58
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['LOCALIZATION_ENABLED'] == 'enabled'
|
||||
elsif ENV.fetch('LOCALIZATION_ENABLED', 'false') == 'true'
|
||||
locale = http_accept_language.compatible_language_from(I18n.available_locales)
|
||||
else
|
||||
locale = I18n.default_locale
|
||||
|
|
Loading…
Reference in a new issue