fix: batch bug fixes matching backend changes

- Promo code errors: add inactive/not_yet_valid translations (4 locales) + Balance.tsx parser
- Daily 100% discount: render price block when originalDailyPrice > 0
- Webvisor: enable in Yandex Metrika init config
- Referral attribution: consume campaign/referral slugs only after successful auth (all login methods)
- registerWithEmail: consume referral code after success
- AdminSettings: move TARIFF_MODE_SETTINGS to module scope (fix eslint warning)
This commit is contained in:
c0mrade
2026-04-08 18:33:47 +03:00
parent 1cf9526713
commit e6f6713b0e
11 changed files with 65 additions and 30 deletions

View File

@@ -677,6 +677,8 @@
"errors": {
"not_found": "Promo code not found",
"expired": "Promo code has expired",
"inactive": "Promo code is deactivated",
"not_yet_valid": "Promo code is not yet active",
"used": "Promo code has already been used",
"already_used_by_user": "You have already used this promo code",
"user_not_found": "User not found",

View File

@@ -524,6 +524,8 @@
"errors": {
"not_found": "کد تخفیف یافت نشد",
"expired": "کد تخفیف منقضی شده",
"inactive": "کد تخفیف غیرفعال شده",
"not_yet_valid": "کد تخفیف هنوز فعال نشده",
"used": "کد تخفیف قبلاً استفاده شده",
"already_used_by_user": "شما قبلاً از این کد استفاده کرده‌اید",
"user_not_found": "کاربر یافت نشد",

View File

@@ -705,6 +705,8 @@
"errors": {
"not_found": "Промокод не найден",
"expired": "Срок действия промокода истёк",
"inactive": "Промокод деактивирован",
"not_yet_valid": "Промокод ещё не начал действовать",
"used": "Промокод уже использован",
"already_used_by_user": "Вы уже использовали этот промокод",
"user_not_found": "Пользователь не найден",

View File

@@ -524,6 +524,8 @@
"errors": {
"not_found": "优惠码不存在",
"expired": "优惠码已过期",
"inactive": "优惠码已停用",
"not_yet_valid": "优惠码尚未生效",
"used": "优惠码已被使用",
"already_used_by_user": "您已使用过此优惠码",
"user_not_found": "用户不存在",