feat: add telegram guardrails for trials and referrals

This commit is contained in:
3252a8
2026-06-04 10:51:58 +03:00
parent 33707b7257
commit 2ad6b14513
26 changed files with 1944 additions and 125 deletions
+36 -1
View File
@@ -835,10 +835,14 @@
"wa_trial_download_traffic_label": "Available to download",
"wa_trial_try_free": "Try for free",
"wa_trial_activated": "Trial activated",
"wa_trial_telegram_required_title": "Link Telegram to start trial",
"wa_trial_telegram_required_description": "To activate a {duration} trial with {traffic}, link Telegram first.",
"wa_trial_link_telegram_and_activate": "Link and activate",
"wa_activation_success_title": "Everything is successfully activated",
"wa_activation_success_install_hint": "Press OK and follow the setup instructions for your device.",
"wa_activation_success_connect_hint": "Press OK and we will open the Remnawave subscription page for setup.",
"wa_trial_activation_failed": "Failed to activate trial",
"wa_trial_telegram_required_error": "Link Telegram to activate the trial.",
"wa_trial_activation_loading": "Activating trial...",
"wa_trial_activation_wait": "Preparing access and connection details.",
"wa_trial_active_hint": "Access is ready. Install the app and import the profile.",
@@ -852,7 +856,15 @@
"wa_install_and_configure": "Install and configure",
"wa_payment_methods_not_configured": "Payment methods are not configured yet",
"wa_pay": "Pay",
"wa_referral_program_title": "Referral program",
"wa_referral_link_title": "Your referral link",
"wa_referral_welcome_telegram_required_title": "Your bonus is waiting for Telegram",
"wa_referral_welcome_telegram_required_description": "Link Telegram to claim {days} bonus days for registering via an invite.",
"wa_referral_link_telegram_and_claim": "Link and claim bonus",
"wa_referral_welcome_claimed": "Referral bonus granted",
"wa_referral_welcome_claimed_until": "Referral bonus granted until {date}",
"wa_referral_welcome_claim_failed": "Failed to grant referral bonus",
"wa_referral_welcome_telegram_required_error": "Link Telegram to claim the referral bonus.",
"wa_link_unavailable": "Link is not available yet",
"wa_link_copied": "Link copied",
"wa_copy": "Copy",
@@ -1131,7 +1143,7 @@
"admin_settings_section_general": "General",
"admin_settings_section_remnawave": "Remnawave Panel",
"admin_settings_section_appearance": "Appearance",
"admin_settings_section_pricing": "Legacy tariff compatibility",
"admin_settings_section_pricing": "Tariffs",
"admin_settings_section_payments": "Payment systems",
"admin_settings_section_trial": "Trial",
"admin_settings_section_referral": "Referral program",
@@ -1145,6 +1157,9 @@
"admin_settings_field_telemetry_enabled_description": "Sends one anonymous heartbeat per day (version, OS, locale, user-count range). No personal data, tokens or domains. Helps gauge how many installs are active and which versions are in use. Toggling this off takes effect without a restart.",
"admin_settings_subsection_common": "Common",
"admin_settings_subsection_checkout": "Checkout",
"admin_settings_subsection_trial": "Trial",
"admin_settings_subsection_referral": "Referral program",
"admin_settings_subsection_legacy_tariffs": "Legacy tariffs",
"admin_settings_subsection_remnawave": "Remnawave",
"admin_settings_subsection_remnashop": "Remnashop",
"admin_settings_subsection_telegram_stars": "Telegram Stars",
@@ -1506,6 +1521,7 @@
"admin_tariffs_trial_title": "Trial access",
"admin_tariffs_trial_subtitle": "Configure trial duration, traffic limit, and Remnawave squads from the tariff page.",
"admin_tariffs_trial_enabled": "Trial enabled",
"admin_tariffs_trial_without_telegram_enabled": "Trial without Telegram",
"admin_tariffs_trial_days": "Duration, days",
"admin_tariffs_trial_traffic": "Traffic limit, GB",
"admin_tariffs_trial_strategy": "Traffic reset strategy",
@@ -1520,6 +1536,18 @@
"admin_tariffs_trial_group_reset_hint": "Strategy Remnawave uses to refresh the trial traffic limit.",
"admin_tariffs_trial_group_squads": "Squads",
"admin_tariffs_trial_group_squads_hint": "Squads assigned to the user when trial access is activated.",
"admin_tariffs_referral_title": "Referral program",
"admin_tariffs_referral_subtitle": "Configure welcome bonus, grant rules, and disposable email protection.",
"admin_tariffs_referral_group_welcome": "Welcome bonus",
"admin_tariffs_referral_group_welcome_hint": "Days granted to an invited user after registration via referral link.",
"admin_tariffs_referral_welcome_bonus_days": "Welcome bonus, days",
"admin_tariffs_referral_without_telegram": "Grant welcome bonus without Telegram",
"admin_tariffs_referral_group_rules": "Rules and anti-abuse",
"admin_tariffs_referral_group_rules_hint": "Repeat-bonus limits and disposable email domains for no-Telegram accounts.",
"admin_tariffs_referral_one_bonus_per_referee": "One bonus per invited user",
"admin_tariffs_referral_legacy_refs": "Legacy ref links",
"admin_tariffs_referral_disposable_domains": "Disposable email domains",
"admin_tariffs_referral_disposable_domains_hint": "One domain per line or comma-separated. Subdomains are treated as matches too.",
"admin_tariffs_legacy_title": "Legacy tariff compatibility",
"admin_tariffs_legacy_subtitle": "Old remnawave-tg-shop periods and traffic packages used only when the JSON tariff catalog is not configured.",
"admin_tariffs_legacy_period": "Period",
@@ -1728,9 +1756,16 @@
"admin_settings_field_trial_duration_days_label": "Trial Duration Days",
"admin_settings_field_trial_traffic_limit_gb_label": "Trial Traffic Limit Gb",
"admin_settings_field_trial_traffic_strategy_label": "Trial Traffic Strategy",
"admin_settings_field_trial_without_telegram_enabled_label": "Trial Without Telegram",
"admin_settings_field_trial_without_telegram_enabled_description": "If disabled, email-only users must link Telegram before activating a trial. Disposable email domains always require Telegram.",
"admin_settings_field_referral_one_bonus_per_referee_label": "Referral One Bonus Per Referee",
"admin_settings_field_referral_welcome_bonus_days_label": "Referral Welcome Bonus Days",
"admin_settings_field_referral_welcome_bonus_without_telegram_enabled_label": "Referral Welcome Bonus Without Telegram",
"admin_settings_field_referral_welcome_bonus_without_telegram_enabled_description": "If disabled, email-only users must link Telegram before receiving the referral welcome bonus. Disposable email domains always require Telegram.",
"admin_settings_field_legacy_refs_label": "Legacy Refs",
"admin_settings_field_disposable_email_domains_label": "Disposable Email Domains",
"admin_settings_field_disposable_email_domains_description": "Comma-separated domains. Users without Telegram using these emails cannot claim trial or referral welcome bonus.",
"admin_settings_field_disposable_email_domains_placeholder": "mailinator.com,temp-mail.org,yopmail.com",
"admin_settings_field_referral_bonus_days_inviter_1_month_label": "Referral Bonus Days Inviter 1 Month",
"admin_settings_field_referral_bonus_days_inviter_3_months_label": "Referral Bonus Days Inviter 3 Months",
"admin_settings_field_referral_bonus_days_inviter_6_months_label": "Referral Bonus Days Inviter 6 Months",