From 10e37e749b1cf8b7a9d3ad0ca924abc6af4adc99 Mon Sep 17 00:00:00 2001 From: Samir Boulahtit Date: Sat, 25 Apr 2026 13:15:47 +0200 Subject: [PATCH] fix(loyalty): show translated category names on terminal Category pills in the PIN modal now display the translated name based on the page's current_language, falling back to the default name (English) if no translation exists. Co-Authored-By: Claude Opus 4.6 (1M context) --- app/modules/loyalty/templates/loyalty/store/terminal.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/modules/loyalty/templates/loyalty/store/terminal.html b/app/modules/loyalty/templates/loyalty/store/terminal.html index f491894f..92e680a0 100644 --- a/app/modules/loyalty/templates/loyalty/store/terminal.html +++ b/app/modules/loyalty/templates/loyalty/store/terminal.html @@ -338,7 +338,7 @@ :class="selectedCategories.includes(cat.id) ? 'bg-purple-600 text-white border-purple-600' : 'bg-white text-gray-700 border-gray-300 hover:bg-gray-50 dark:bg-gray-700 dark:text-gray-300 dark:border-gray-600'" - x-text="cat.name"> + x-text="(cat.name_translations && cat.name_translations['{{ current_language | default('en') }}']) || cat.name">