feat: add gifts tab to admin user detail page

Display sent and received gift subscriptions with status badges,
extracted GiftCard component, and full i18n support (ru/en/zh/fa).
This commit is contained in:
Fringg
2026-03-11 03:30:13 +03:00
parent 03c9e73a37
commit 695ab42e03
6 changed files with 481 additions and 6 deletions

View File

@@ -2662,7 +2662,8 @@
"subscription": "Subscription",
"balance": "Balance",
"sync": "Synchronization",
"tickets": "Tickets"
"tickets": "Tickets",
"gifts": "Gifts"
},
"noTickets": "No tickets from this user",
"ticketsCount": "tickets",
@@ -2786,6 +2787,41 @@
"notLinked": "Not linked",
"fromPanel": "From panel to bot",
"toPanel": "From bot to panel"
},
"gifts": {
"title": "User Gifts",
"sentTitle": "Sent Gifts",
"receivedTitle": "Received Gifts",
"noSent": "No gifts sent by this user",
"noReceived": "No gifts received by this user",
"noGifts": "No gifts",
"token": "Code",
"tariff": "Tariff",
"period": "Period",
"devices": "Devices",
"amount": "Amount",
"paymentMethod": "Payment method",
"recipient": "Recipient",
"sender": "Sender",
"message": "Message",
"createdAt": "Created",
"paidAt": "Paid",
"deliveredAt": "Activated",
"status": {
"pending": "Pending",
"paid": "Paid",
"delivered": "Delivered",
"pending_activation": "Pending activation",
"failed": "Failed",
"expired": "Expired"
},
"days": "d",
"codeOnly": "Code only",
"via": "via",
"balance": "balance",
"unknownUser": "Unknown",
"totalSent": "Total sent",
"totalReceived": "Total received"
}
}
},