diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c5a9b8fc9..35b393a6b 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -309,7 +309,7 @@ class ApplicationController < ActionController::Base end def set_locale - if feature_enabled?(:localization) + if ENV.fetch('LOCALIZATION_ENABLED', 'false') == 'true' I18n.locale = http_accept_language.compatible_language_from(I18n.available_locales) end end diff --git a/config/env.example.optional b/config/env.example.optional index 79c507f2b..1553eb594 100644 --- a/config/env.example.optional +++ b/config/env.example.optional @@ -69,3 +69,6 @@ DS_ENV="staging" # Active le mode maintenance # MAINTENANCE_MODE="true" + +# Active la localisation +# LOCALIZATION_ENABLED="true" diff --git a/config/initializers/flipper.rb b/config/initializers/flipper.rb index d9473168c..e6ded11d0 100644 --- a/config/initializers/flipper.rb +++ b/config/initializers/flipper.rb @@ -32,7 +32,6 @@ features = [ :expert_not_allowed_to_invite, :hide_instructeur_email, :instructeur_bypass_email_login_token, - :localization, :make_experts_notifiable, :procedure_routage_api ]