From 7bf54088a63f5ec5fb3f5511bb8972c7501dc811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= <2887858+deivid-rodriguez@users.noreply.github.com> Date: Tue, 25 Nov 2025 11:40:13 +0100 Subject: [PATCH] Use `Spree.t` directly for translating the `not_found` message Since none of the current keys interpolate a `%{resource}` parameter. --- app/controllers/admin/resource_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/admin/resource_controller.rb b/app/controllers/admin/resource_controller.rb index b15a576f40..e863de0f7d 100644 --- a/app/controllers/admin/resource_controller.rb +++ b/app/controllers/admin/resource_controller.rb @@ -76,7 +76,7 @@ module Admin protected def resource_not_found - flash[:error] = flash_message_for(model_class.new, :not_found) + flash[:error] = Spree.t(:not_found) redirect_to collection_url end