fix(loyalty): add all 27 remaining missing i18n keys

Comprehensive audit found 618 total translation references across all
templates and JS files. Added 27 missing keys to all 4 locale files:
- store.terminal: card_label, confirm, pin_authorize_text, free_item,
  reward_label, search_empty_state
- store.card_detail: card_label
- store.enroll: bonus_points, card_number_label, points
- store.settings: access_restricted_desc, delete_program_* (3 keys)
- common: setup_program, unknown
- errors: card_not_found
- shared.pins: save_changes, unlock
- toasts: pin_created/updated/deleted/unlocked + error variants (8 keys)

All 618 keys now resolve. 778 total keys per locale file.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-23 20:29:21 +01:00
parent 1d90bfe044
commit 894832c62b
4 changed files with 144 additions and 28 deletions

View File

@@ -169,7 +169,9 @@
"total": "TOTAL",
"view": "View",
"yes": "Yes",
"contact_admin_setup": "Contact your administrator to set up the loyalty program"
"contact_admin_setup": "Contact your administrator to set up the loyalty program",
"setup_program": "Set Up Program",
"unknown": "Unknown"
},
"transactions": {
"card_created": "Enrolled",
@@ -354,7 +356,9 @@
"pin_unlocked": "PIN unlocked successfully",
"save": "Save",
"cancel": "Cancel",
"read_only_notice": "PINs are read-only in admin view"
"read_only_notice": "PINs are read-only in admin view",
"save_changes": "Save Changes",
"unlock": "Unlock"
},
"program_form": {
"program_type": "Program Type",
@@ -694,7 +698,13 @@
"stamp_added": "Stamp added!",
"stamps_redeemed": "Stamps redeemed! Reward earned.",
"x_points_awarded": "{points} points awarded!",
"reward_redeemed": "Reward redeemed: {name}"
"reward_redeemed": "Reward redeemed: {name}",
"card_label": "Card",
"confirm": "Confirm",
"pin_authorize_text": "Enter your staff PIN to authorize this transaction",
"free_item": "Free item",
"reward_label": "Reward",
"search_empty_state": "Search for a customer to get started"
},
"cards": {
"title": "Loyalty Members",
@@ -742,7 +752,8 @@
"col_points": "Points",
"col_location": "Location",
"col_notes": "Notes",
"no_transactions": "No transactions yet"
"no_transactions": "No transactions yet",
"card_label": "Card"
},
"enroll": {
"title": "Enroll Customer",
@@ -769,7 +780,10 @@
"x_points": "{count} points",
"back_to_terminal": "Back to Terminal",
"enroll_another": "Enroll Another",
"enrollment_failed": "Enrollment failed: {message}"
"enrollment_failed": "Enrollment failed: {message}",
"bonus_points": "Bonus Points",
"card_number_label": "Card Number",
"points": "points"
},
"analytics": {
"title": "Loyalty Analytics",
@@ -814,7 +828,11 @@
"program_updated": "Program updated successfully",
"program_deleted": "Loyalty program deleted",
"save_failed": "Failed to save: {message}",
"delete_failed": "Failed to delete: {message}"
"delete_failed": "Failed to delete: {message}",
"access_restricted_desc": "Only the merchant owner can modify program settings",
"delete_program_confirm": "Delete",
"delete_program_desc": "This will permanently delete the loyalty program and all associated data",
"delete_program_title": "Delete Loyalty Program?"
}
},
"storefront": {
@@ -870,6 +888,17 @@
"save_failed": "Failed to save: {message}",
"settings_save_failed": "Failed to save settings: {message}",
"create_failed": "Failed to create program: {message}",
"logo_required": "Logo URL is required for wallet integration."
"logo_required": "Logo URL is required for wallet integration.",
"pin_created": "PIN created successfully",
"pin_updated": "PIN updated successfully",
"pin_deleted": "PIN deleted successfully",
"pin_unlocked": "PIN unlocked successfully",
"pin_create_error": "Failed to create PIN",
"pin_update_error": "Failed to update PIN",
"pin_delete_error": "Failed to delete PIN",
"pin_unlock_error": "Failed to unlock PIN"
},
"errors": {
"card_not_found": "Card not found"
}
}