From 0b3c71c621acf7381f9740e207c26a8a9d4b01be Mon Sep 17 00:00:00 2001 From: Angus McLeod Date: Fri, 15 Jul 2022 13:23:32 +0100 Subject: [PATCH] FIX: adopt a simplified with_resolved_locale to ensure user's locale is always loaded --- app/controllers/custom_wizard/wizard.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/app/controllers/custom_wizard/wizard.rb b/app/controllers/custom_wizard/wizard.rb index bb53670b..4dbb5b69 100644 --- a/app/controllers/custom_wizard/wizard.rb +++ b/app/controllers/custom_wizard/wizard.rb @@ -12,6 +12,7 @@ class CustomWizard::WizardController < ::ActionController::Base before_action :preload_wizard_json before_action :ensure_plugin_enabled before_action :ensure_logged_in, only: [:skip] + around_action :with_resolved_locale helper_method :wizard_page_title helper_method :wizard_theme_id @@ -115,6 +116,13 @@ class CustomWizard::WizardController < ::ActionController::Base @preloaded[key] = json.gsub("