fix(loyalty): show translated category names on terminal
Some checks failed
Some checks failed
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:
@@ -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">
|
||||
</button>
|
||||
</template>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user