diff --git a/src/locales/en.json b/src/locales/en.json index aad704e..4ca39d0 100644 --- a/src/locales/en.json +++ b/src/locales/en.json @@ -1099,7 +1099,12 @@ "emailContent": "Email content", "emailContentHint": "HTML supported", "emailContentPlaceholder": "
Hello, {{user_name}}!
\nYour message here...
", - "emailVariables": "Available variables" + "emailVariables": "Available variables", + "enableTelegram": "Telegram", + "enableEmail": "Email", + "sendingBoth": "2 broadcasts will be created", + "bothCreated": "Broadcasts created", + "atLeastOneChannel": "Select at least one channel" }, "settings": { "title": "System Settings", diff --git a/src/locales/fa.json b/src/locales/fa.json index d315c08..6dc458d 100644 --- a/src/locales/fa.json +++ b/src/locales/fa.json @@ -803,7 +803,12 @@ "activity": "بر اساس فعالیت", "source": "بر اساس منبع", "tariff": "بر اساس تعرفه" - } + }, + "enableTelegram": "Telegram", + "enableEmail": "Email", + "sendingBoth": "۲ پیامرسانی ایجاد خواهد شد", + "bothCreated": "پیامرسانیها ایجاد شدند", + "atLeastOneChannel": "حداقل یک کانال را انتخاب کنید" }, "payments": { "title": "تأیید پرداخت", diff --git a/src/locales/ru.json b/src/locales/ru.json index 2715923..c7faef0 100644 --- a/src/locales/ru.json +++ b/src/locales/ru.json @@ -1124,7 +1124,12 @@ "emailContent": "Содержимое письма", "emailContentHint": "Поддерживается HTML", "emailContentPlaceholder": "Здравствуйте, {{user_name}}!
\nТекст вашего письма...
", - "emailVariables": "Доступные переменные" + "emailVariables": "Доступные переменные", + "enableTelegram": "Telegram", + "enableEmail": "Email", + "sendingBoth": "Будет создано 2 рассылки", + "bothCreated": "Рассылки созданы", + "atLeastOneChannel": "Выберите хотя бы один канал" }, "settings": { "title": "Настройки системы", diff --git a/src/locales/zh.json b/src/locales/zh.json index 5b9d533..b6435e6 100644 --- a/src/locales/zh.json +++ b/src/locales/zh.json @@ -855,7 +855,12 @@ "activity": "按活动", "source": "按来源", "tariff": "按套餐" - } + }, + "enableTelegram": "Telegram", + "enableEmail": "Email", + "sendingBoth": "将创建2个群发", + "bothCreated": "群发已创建", + "atLeastOneChannel": "请至少选择一个渠道" }, "settings": { "title": "系统设置", diff --git a/src/pages/AdminBroadcastCreate.tsx b/src/pages/AdminBroadcastCreate.tsx index 3ee1dea..6e514f8 100644 --- a/src/pages/AdminBroadcastCreate.tsx +++ b/src/pages/AdminBroadcastCreate.tsx @@ -6,7 +6,6 @@ import { adminBroadcastsApi, BroadcastFilter, TariffFilter, - BroadcastChannel, CombinedBroadcastCreateRequest, } from '../api/adminBroadcasts'; import { AdminBackButton } from '../components/admin'; @@ -118,12 +117,15 @@ export default function AdminBroadcastCreate() { const queryClient = useQueryClient(); const fileInputRef = useRef{t('admin.broadcasts.atLeastOneChannel')}
+ )} + {bothChannels && ( +{t('admin.broadcasts.sendingBoth')}
+ )}