From c14bdfa204e351e82dd0c5ed07132aee40987098 Mon Sep 17 00:00:00 2001 From: paisley <8197966+su8su@users.noreply.github.com> Date: Thu, 2 Apr 2026 13:37:49 +0800 Subject: [PATCH] fix(cron): replace hardcoded channel name in no-delivery-targets message (#744) --- src/i18n/locales/en/cron.json | 2 +- src/i18n/locales/ja/cron.json | 2 +- src/i18n/locales/zh/cron.json | 2 +- src/pages/Cron/index.tsx | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/i18n/locales/en/cron.json b/src/i18n/locales/en/cron.json index c3672f54f..81a761ee7 100644 --- a/src/i18n/locales/en/cron.json +++ b/src/i18n/locales/en/cron.json @@ -54,7 +54,7 @@ "deliveryTargetGroupDefault": "Recommended", "deliveryTargetGroupUsers": "Users", "deliveryTargetGroupChats": "Chats", - "noDeliveryTargets": "No delivery targets are available for the selected Feishu account.", + "noDeliveryTargets": "No delivery targets are available for the selected {{channel}} account.", "deliveryTargetPlaceholder": "Enter the delivery target for this channel", "deliveryTargetPlaceholderFeishu": "e.g., user:ou_xxx or chat:oc_xxx", "deliveryTargetDesc": "This maps to delivery.to in OpenClaw and is sent as-is.", diff --git a/src/i18n/locales/ja/cron.json b/src/i18n/locales/ja/cron.json index fc3508abf..b1abf698b 100644 --- a/src/i18n/locales/ja/cron.json +++ b/src/i18n/locales/ja/cron.json @@ -52,7 +52,7 @@ "deliveryTargetGroupDefault": "おすすめ", "deliveryTargetGroupUsers": "ユーザー", "deliveryTargetGroupChats": "グループ", - "noDeliveryTargets": "この Feishu アカウントでは選択可能な送信先が見つかりませんでした。", + "noDeliveryTargets": "この {{channel}} アカウントでは選択可能な送信先が見つかりませんでした。", "deliveryTargetPlaceholder": "このチャンネルの送信先を入力", "deliveryTargetPlaceholderFeishu": "例: user:ou_xxx または chat:oc_xxx", "deliveryTargetDesc": "この値は OpenClaw の delivery.to にそのまま保存されます。", diff --git a/src/i18n/locales/zh/cron.json b/src/i18n/locales/zh/cron.json index c67fa8351..01a02f6a6 100644 --- a/src/i18n/locales/zh/cron.json +++ b/src/i18n/locales/zh/cron.json @@ -54,7 +54,7 @@ "deliveryTargetGroupDefault": "推荐", "deliveryTargetGroupUsers": "用户", "deliveryTargetGroupChats": "群聊", - "noDeliveryTargets": "当前飞书账号暂无可选投递目标。", + "noDeliveryTargets": "当前 {{channel}} 账号暂无可选投递目标。", "deliveryTargetPlaceholder": "输入该通道的投递目标", "deliveryTargetPlaceholderFeishu": "例如:user:ou_xxx 或 chat:oc_xxx", "deliveryTargetDesc": "这里会直接写入 OpenClaw 的 delivery.to。", diff --git a/src/pages/Cron/index.tsx b/src/pages/Cron/index.tsx index 24acf26f0..8a39340f9 100644 --- a/src/pages/Cron/index.tsx +++ b/src/pages/Cron/index.tsx @@ -629,7 +629,7 @@ function TaskDialog({ job, configuredChannels, onClose, onSave }: TaskDialogProp
{availableTargetOptions.length > 0 ? t('dialog.deliveryTargetDescAuto') - : t('dialog.noDeliveryTargets')} + : t('dialog.noDeliveryTargets', { channel: getChannelDisplayName(effectiveDeliveryChannel) })}