fix(loyalty): translate transaction types + notes on card detail page
Some checks failed
CI / ruff (push) Successful in 17s
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 been cancelled

Card detail transaction history now shows translated transaction type
labels and system-generated notes. Uses server-rendered labels object
(same pattern as terminal) to avoid async i18n flicker.

- Transaction types: server-rendered txLabels lookup (all 11 types)
- Notes: txNotes lookup maps English DB strings to translated text
  (e.g., "Welcome bonus on enrollment" → "Bonus de bienvenue...")
- Added welcome_bonus_note key to all 4 locales

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-27 22:23:02 +02:00
parent 3fa159ff2a
commit 4f70290af5
6 changed files with 33 additions and 6 deletions

View File

@@ -190,7 +190,8 @@
"points_adjustment": "Points ajustés",
"points_expired": "Points expirés",
"card_deactivated": "Désactivé",
"reward_redeemed": "Récompense échangée"
"reward_redeemed": "Récompense échangée",
"welcome_bonus_note": "Bonus de bienvenue à l'inscription"
},
"shared": {
"analytics": {