mirror of
https://github.com/chillpadclub/bedolaga-cabinet.git
synced 2026-07-29 18:13:47 +00:00
fix: harden gift subscription frontend after multi-agent review
- Handle expired status in GiftResult (stop polling + show FailedState) - Add PollErrorState for balance mode poll errors (softer UX) - Remove non-null assertions in handleSubmit (explicit narrowing) - Wrap gift routes in ErrorBoundary - Add pollErrorTitle/pollErrorDesc i18n keys to all 4 locales
This commit is contained in:
@@ -4152,13 +4152,26 @@
|
||||
"tryAgain": "Try again",
|
||||
"pollTimeout": "Processing is taking longer than usual",
|
||||
"pollTimeoutDesc": "Try checking the status later",
|
||||
"pollErrorTitle": "Could not check gift status",
|
||||
"pollErrorDesc": "Your purchase was successful. Check your dashboard for details.",
|
||||
"retry": "Check again",
|
||||
"notFound": "Gift configuration not found",
|
||||
"noToken": "Invalid link",
|
||||
"noTokenDesc": "This gift link is invalid or has expired.",
|
||||
"days": "days",
|
||||
"tariff": "Tariff",
|
||||
"period": "Period",
|
||||
"giftMessageLabel": "Message",
|
||||
"recipientLabel": "Recipient",
|
||||
"featureDisabled": "Gift feature is temporarily unavailable",
|
||||
"redirecting": "Redirecting..."
|
||||
"redirecting": "Redirecting...",
|
||||
"pending": {
|
||||
"title": "You received a gift!",
|
||||
"from": "from {{sender}}",
|
||||
"activate": "Activate"
|
||||
},
|
||||
"warning": {
|
||||
"telegram_unresolvable": "Could not verify this Telegram username. The recipient may not receive a notification about the gift."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3647,13 +3647,26 @@
|
||||
"tryAgain": "تلاش مجدد",
|
||||
"pollTimeout": "پردازش بیش از حد معمول طول کشیده",
|
||||
"pollTimeoutDesc": "بعداً وضعیت را بررسی کنید",
|
||||
"pollErrorTitle": "بررسی وضعیت هدیه امکانپذیر نیست",
|
||||
"pollErrorDesc": "خرید شما موفقیتآمیز بود. وضعیت را در داشبورد بررسی کنید.",
|
||||
"retry": "بررسی مجدد",
|
||||
"notFound": "تنظیمات هدیه یافت نشد",
|
||||
"noToken": "لینک نامعتبر",
|
||||
"noTokenDesc": "این لینک هدیه نامعتبر است یا منقضی شده.",
|
||||
"days": "روز",
|
||||
"tariff": "طرح",
|
||||
"period": "مدت",
|
||||
"giftMessageLabel": "پیام",
|
||||
"recipientLabel": "گیرنده",
|
||||
"featureDisabled": "قابلیت هدیه موقتاً در دسترس نیست",
|
||||
"redirecting": "در حال انتقال..."
|
||||
"redirecting": "در حال انتقال...",
|
||||
"pending": {
|
||||
"title": "شما یک هدیه دریافت کردید!",
|
||||
"from": "از {{sender}}",
|
||||
"activate": "فعالسازی"
|
||||
},
|
||||
"warning": {
|
||||
"telegram_unresolvable": "نام کاربری تلگرام قابل تأیید نبود. ممکن است گیرنده اعلان هدیه را دریافت نکند."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -4714,13 +4714,26 @@
|
||||
"tryAgain": "Попробовать снова",
|
||||
"pollTimeout": "Обработка занимает больше времени, чем обычно",
|
||||
"pollTimeoutDesc": "Попробуйте проверить статус позже",
|
||||
"pollErrorTitle": "Не удалось проверить статус подарка",
|
||||
"pollErrorDesc": "Ваша покупка прошла успешно. Проверьте статус на главной странице.",
|
||||
"retry": "Проверить снова",
|
||||
"notFound": "Конфигурация подарков не найдена",
|
||||
"noToken": "Ссылка недействительна",
|
||||
"noTokenDesc": "Ссылка на подарок недействительна или просрочена.",
|
||||
"days": "дн.",
|
||||
"tariff": "Тариф",
|
||||
"period": "Период",
|
||||
"giftMessageLabel": "Сообщение",
|
||||
"recipientLabel": "Получатель",
|
||||
"featureDisabled": "Функция подарков временно недоступна",
|
||||
"redirecting": "Перенаправляем..."
|
||||
"redirecting": "Перенаправляем...",
|
||||
"pending": {
|
||||
"title": "Вам подарили подписку!",
|
||||
"from": "от {{sender}}",
|
||||
"activate": "Активировать"
|
||||
},
|
||||
"warning": {
|
||||
"telegram_unresolvable": "Не удалось проверить этот Telegram-юзернейм. Получатель может не получить уведомление о подарке."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3646,13 +3646,26 @@
|
||||
"tryAgain": "重试",
|
||||
"pollTimeout": "处理时间超出预期",
|
||||
"pollTimeoutDesc": "请稍后再查看状态",
|
||||
"pollErrorTitle": "无法检查礼物状态",
|
||||
"pollErrorDesc": "您的购买已成功。请在仪表板上查看详情。",
|
||||
"retry": "再次检查",
|
||||
"notFound": "未找到礼物配置",
|
||||
"noToken": "无效链接",
|
||||
"noTokenDesc": "此礼物链接无效或已过期。",
|
||||
"days": "天",
|
||||
"tariff": "套餐",
|
||||
"period": "时长",
|
||||
"giftMessageLabel": "消息",
|
||||
"recipientLabel": "收件人",
|
||||
"featureDisabled": "礼物功能暂时不可用",
|
||||
"redirecting": "正在跳转..."
|
||||
"redirecting": "正在跳转...",
|
||||
"pending": {
|
||||
"title": "您收到了一份礼物!",
|
||||
"from": "来自 {{sender}}",
|
||||
"activate": "激活"
|
||||
},
|
||||
"warning": {
|
||||
"telegram_unresolvable": "无法验证此 Telegram 用户名。收件人可能不会收到礼物通知。"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user