feature: Add local subscription notification worker

This commit is contained in:
3252a8
2026-05-28 22:48:48 +03:00
parent 1c1ef06e29
commit d299a3c524
15 changed files with 561 additions and 1 deletions
+3
View File
@@ -257,8 +257,10 @@
"subscription_72h_notification": "👋 Hi, {user_name}!\n\n⏳ Your service subscription expires in 3 days — {end_date}.\n\nPlease renew it using the button below.",
"subscription_48h_notification": "👋 Hi, {user_name}!\n\n⏳ Your service subscription expires in 2 days — {end_date}.\n\nPlease renew it using the button below.",
"subscription_24h_notification": "👋 Hi, {user_name}!\n\n⏳ Your service subscription expires in 1 day — {end_date}.\n\nPlease renew it using the button below.",
"subscription_hours_notification": "👋 Hi, {user_name}!\n\n⏳ Your service subscription expires in {hours} hours — {end_date}.\n\nPlease renew it using the button below.",
"subscription_expired_notification": "👋 Hi, {user_name}!\n\n⛔ Your service subscription expired on {end_date}.\n\nPlease renew it using the button below.",
"subscription_expired_yesterday_notification": "👋 Hi, {user_name}!\n\n⏳ Your service subscription expired yesterday ({end_date}).\n\nPlease renew it using the button below.",
"trial_traffic_depleted_notification": "⛔️ Trial traffic is used up.\n\n<b>Used:</b> {used}\n<b>Remaining:</b> {remaining}\n<b>Limit:</b> {limit_total}\n\nTo keep using the service, buy a subscription using the button below.",
"autorenew_48h_charge_tomorrow_notice": "🔔 Reminder\n\nTomorrow an automatic charge will occur to renew your subscription. If you don't want auto-renew, disable it using the button below.",
"autorenew_confirm_enable": "🔄 Enable auto-renew? An automatic charge will be attempted before your subscription ends.",
"autorenew_confirm_disable": "🛑 Disable auto-renew? No further automatic charges will occur.",
@@ -1559,6 +1561,7 @@
"admin_settings_field_subscription_notify_on_expire_label": "Subscription Notify On Expire",
"admin_settings_field_subscription_notify_after_expire_label": "Subscription Notify After Expire",
"admin_settings_field_subscription_notify_days_before_label": "Subscription Notify Days Before",
"admin_settings_field_subscription_notify_hours_before_label": "Subscription Notify Hours Before",
"admin_settings_field_log_new_users_label": "Log New Users",
"admin_settings_field_log_payments_label": "Log Payments",
"admin_settings_field_log_promo_activations_label": "Log Promo Activations",
+3
View File
@@ -190,8 +190,10 @@
"subscription_72h_notification": "👋 Привет, {user_name}!\n\n⏳ Ваша подписка на сервис истекает через 3 дня — {end_date}.\n\nПродлите её по кнопке ниже.",
"subscription_48h_notification": "👋 Привет, {user_name}!\n\n⏳ Ваша подписка на сервис истекает через 2 дня — {end_date}.\n\nПродлите её по кнопке ниже.",
"subscription_24h_notification": "👋 Привет, {user_name}!\n\n⏳ Ваша подписка на сервис истекает через 1 день — {end_date}.\n\nПродлите её по кнопке ниже.",
"subscription_hours_notification": "👋 Привет, {user_name}!\n\n⏳ Ваша подписка на сервис истекает через {hours} ч. — {end_date}.\n\nПродлите её по кнопке ниже.",
"subscription_expired_notification": "👋 Привет, {user_name}!\n\n⛔ Срок вашей подписки на сервис истек ({end_date}).\n\nПродлите её по кнопке ниже.",
"subscription_expired_yesterday_notification": "👋 Привет, {user_name}!\n\n⏳ Ваша подписка на сервис истекла сутки назад ({end_date}).\n\nПродлите её по кнопке ниже.",
"trial_traffic_depleted_notification": "⛔️ Трафик пробного периода израсходован.\n\n<b>Использовано:</b> {used}\n<b>Осталось:</b> {remaining}\n<b>Лимит:</b> {limit_total}\n\nЧтобы продолжить пользоваться сервисом, оформите подписку по кнопке ниже.",
"autorenew_48h_charge_tomorrow_notice": "🔔 Напоминание\n\nЗавтра будет автоматическое списание за продление подписки. Если вы не хотите автопродление — отключите его кнопкой ниже.",
"autorenew_confirm_enable": "🔄 Включить автопродление? Перед окончанием подписки будет выполняться автосписание.",
"autorenew_confirm_disable": "🛑 Отключить автопродление? Автосписаний больше не будет.",
@@ -1559,6 +1561,7 @@
"admin_settings_field_subscription_notify_on_expire_label": "Уведомлять об истечении",
"admin_settings_field_subscription_notify_after_expire_label": "Уведомлять после истечения",
"admin_settings_field_subscription_notify_days_before_label": "За сколько дней предупреждать",
"admin_settings_field_subscription_notify_hours_before_label": "За сколько часов предупреждать",
"admin_settings_field_log_new_users_label": "Логировать новых пользователей",
"admin_settings_field_log_payments_label": "Логировать платежи",
"admin_settings_field_log_promo_activations_label": "Логировать активации промокодов",