fix(loyalty): show translated category names on terminal
Some checks failed
CI / ruff (push) Successful in 14s
CI / validate (push) Has been cancelled
CI / dependency-scanning (push) Has been cancelled
CI / docs (push) Has been cancelled
CI / deploy (push) Has been cancelled
CI / pytest (push) Has started running

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) <noreply@anthropic.com>
This commit is contained in:
2026-04-25 13:15:47 +02:00
parent f23990a4d9
commit 10e37e749b

View File

@@ -338,7 +338,7 @@
:class="selectedCategories.includes(cat.id) :class="selectedCategories.includes(cat.id)
? 'bg-purple-600 text-white border-purple-600' ? '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'" : '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">
</button> </button>
</template> </template>
</div> </div>