fix: gift UI improvements — declension, GB display, share modal, deep links

- Fix Russian device count declension (_one/_few/_many)
- Show traffic GB and tariff description in buy tab
- Replace copy/share buttons with share modal (bot + cabinet links)
- GiftResult: code-only success state with formatted share message
- Support ?tab=activate&code=TOKEN for auto-activation via cabinet link
- Add is_code_only + purchase_token to API types
This commit is contained in:
Fringg
2026-03-10 06:03:28 +03:00
parent af3e535c69
commit 1bafcca1ef
5 changed files with 380 additions and 59 deletions

View File

@@ -4233,9 +4233,21 @@
"codeCopied": "Code copied!",
"shareGift": "SHARE",
"shareText": "I have a gift for you! Activate it here:",
"codeReadyTitle": "Gift code is ready!",
"codeLabel": "Gift code",
"sharePreview": "Message to share",
"copyMessage": "Copy",
"activatedBy": "Activated by {{username}}",
"sentTo": "Sent to {{recipient}}",
"daysShort": "days",
"devicesShort": "dev."
"devicesShort": "dev.",
"gbShort": "GB",
"unlimitedTraffic": "Unlimited",
"shareModalTitle": "Share gift",
"shareModalDesc": "Send this message to the gift recipient",
"shareModalActivateVia": "Activate via bot:",
"shareModalActivateViaCabinet": "Or via website:",
"shareModalCopyAll": "Copy message",
"shareModalCopied": "Copied!"
}
}