Files
clawpanel/src/locales/modules/communication.js
晴天 271dc93b08 feat: OpenClaw 4.9 全面适配 (v0.12.0)
- 推荐内核统一升级至 2026.4.9 / 2026.4.9-zh.2
- standalone 安装兼容 edition 格式 latest.json + openclaw-zh- 文件名前缀
- standalone 三级降级: R2 CDN → GitHub Releases → npm
- pre_install_cleanup 所有命令加 10s 超时保护(修复安装卡死)
- npm uninstall 加 30s 超时保护
- wmic 全部迁移到 PowerShell(兼容 Windows 11)
- standalone 下载增加文字进度显示
2026-04-11 04:42:36 +08:00

95 lines
12 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import { _ } from '../helper.js'
export default {
title: _('通信与自动化', 'Communication & Automation', '通信與自動化', '通信と自動化', '통신 및 자동화', 'Truyền thông & Tự động hóa', 'Comunicación y Automatización', 'Comunicação e Automação', 'Коммуникации и автоматизация', 'Communication et Automatisation', 'Kommunikation & Automatisierung'),
desc: _('管理 AI 在各消息渠道中的行为方式:如何回复消息、支持哪些命令、如何接收外部通知等', 'Manage how AI behaves in messaging channels: reply style, commands, external notifications, etc.', '管理 AI 在各訊息頻道中的行為方式:如何回覆訊息、支援哪些命令、如何接收外部通知等', '通知チャンネルと自動化ルールの設定', '알림 채널 및 자동화 규칙 설정', 'Cấu hình kênh thông báo và quy tắc tự động', 'Configurar canales de notificación y reglas de automatización', 'Configurar canais de notificação e regras de automação', 'Настройка каналов уведомлений и правил автоматизации', 'Configurer les canaux de notification et les règles d\'automatisation', 'Benachrichtigungskanäle und Automatisierungsregeln konfigurieren'),
tabMessages: _('消息', 'Messages', '訊息'),
tabBroadcast: _('广播', 'Broadcast', '廣播'),
tabCommands: _('命令', 'Commands'),
tabHooks: _('Webhook', 'Webhook'),
tabApprovals: _('执行审批', 'Approvals', '執行審批'),
save: _('保存', 'Save', '儲存', '保存', '저장', 'Lưu', 'Guardar', 'Salvar', 'Сохранить', 'Enregistrer', 'Speichern'),
saving: _('保存中...', 'Saving...', '儲存中...', '保存中...', '저장 중...'),
loadFailed: _('加载配置失败', 'Failed to load config', '載入設定失敗', '読み込み失敗', '로드 실패', 'Tải thất bại', 'Error al cargar', 'Falha ao carregar', 'Ошибка загрузки', 'Échec du chargement', 'Laden fehlgeschlagen'),
configSaved: _('配置已保存,正在重载 Gateway...', 'Config saved, reloading Gateway...', '設定已儲存,正在重載 Gateway...'),
gwReloaded: _('Gateway 已重载', 'Gateway reloaded', 'Gateway 已重載'),
saveFailed: _('保存失败', 'Save failed', '儲存失敗', '保存失敗', '저장 실패', 'Lưu thất bại', 'Error al guardar', 'Falha ao salvar', 'Ошибка сохранения', 'Échec de la sauvegarde', 'Speichern fehlgeschlagen'),
replySettings: _('回复设置', 'Reply Settings', '回覆設定'),
replyPrefix: _('回复前缀', 'Reply Prefix', '回覆前缀'),
replyPrefixPlaceholder: _('如 [{model}] 或 auto', 'e.g. [{model}] or auto'),
replyPrefixHint: _('每条 AI 回复开头自动加的前缀。支持 {model}、{provider}、{thinkingLevel} 等变量。设为 auto 则显示 Agent 名称', 'Auto-prepended prefix for each AI reply. Supports {model}, {provider}, {thinkingLevel} variables. Set to auto for Agent name.', '每條 AI 回覆開頭自動加的前缀。支援 {model}、{provider}、{thinkingLevel} 等變數。設為 auto 則顯示 Agent 名稱'),
ackReaction: _('确认反应 Emoji', 'Ack Reaction Emoji', '確認反應 Emoji'),
ackReactionPlaceholder: _('如 👀 或留空禁用', 'e.g. 👀 or leave empty to disable', '如 👀 或留空停用'),
ackReactionHint: _('收到消息时自动添加的 emoji 反应(确认已收到)', 'Emoji reaction auto-added when a message is received (acknowledgement)', '收到訊息時自動新增的 emoji 反應(確認已收到)'),
ackScope: _('确认反应范围', 'Ack Reaction Scope', '確認反應範圍'),
ackScopeGroupMentions: _('群聊 @提及时', 'Group @mentions', '群聊 @提及時'),
ackScopeGroupAll: _('群聊所有消息', 'All group messages', '群聊所有訊息'),
ackScopeDirect: _('仅私聊', 'Direct messages only', '僅私聊'),
ackScopeAll: _('所有消息', 'All messages', '所有訊息'),
ackScopeOff: _('关闭', 'Off', '關閉'),
removeAckAfterReply: _('回复后移除确认反应', 'Remove ack after reply', '回覆后移除確認反應'),
removeAckAfterReplyHint: _('回复发送成功后自动删除之前的确认 emoji', 'Auto-remove the ack emoji after the reply is sent', '回覆發送成功后自動刪除之前的確認 emoji'),
suppressToolErrors: _('隐藏工具错误', 'Hide tool errors', '隱藏工具錯誤'),
suppressToolErrorsHint: _('不向用户显示 ⚠️ 工具执行错误', 'Don\'t show ⚠️ tool execution errors to users', '不向使用者顯示 ⚠️ 工具執行錯誤'),
statusReactions: _('状态反应 Emoji', 'Status Reaction Emoji', '狀態反應 Emoji'),
enableStatusReactions: _('启用状态反应', 'Enable status reactions', '啟用狀態反應'),
enableStatusReactionsHint: _('在消息渠道中用 emoji 表示 AI 当前状态(思考中、执行工具、完成等)', 'Show AI status via emoji in channels (thinking, executing tools, done, etc.)', '在訊息頻道中用 emoji 表示 AI 目前狀態(思考中、執行工具、完成等)'),
messageQueue: _('消息队列', 'Message Queue', '訊息佇列'),
debounceMs: _('防抖延迟(毫秒)', 'Debounce Delay (ms)', '防抖延遲(毫秒)'),
debounceMsHint: _('合并快速连续消息的等待时间(毫秒),避免 AI 对每条消息逐一回复', 'Wait time to merge rapid consecutive messages (ms), prevents AI from replying to each one', '合並快速連續訊息的等待時間(毫秒),避免 AI 对每條訊息逐一回覆'),
queueCap: _('队列上限', 'Queue Capacity', '佇列上限'),
queueCapHint: _('等待处理的消息队列最大长度', 'Max length of pending message queue', '等待處理的訊息佇列最大長度'),
groupChat: _('群聊设置', 'Group Chat', '群聊設定'),
groupHistoryLimit: _('群聊历史条数', 'Group History Limit', '群聊歷史條數'),
groupHistoryLimitHint: _('群聊中回溯多少条历史消息作为上下文', 'Number of history messages to include as context in group chats', '群聊中回溯多少條歷史訊息作為上下文'),
broadcastStrategy: _('广播策略', 'Broadcast Strategy', '廣播策略'),
broadcastMode: _('广播处理方式', 'Broadcast Mode', '廣播處理方式'),
broadcastParallel: _('并行parallel— 同时发送给所有目标', 'Parallel — send to all targets simultaneously', '並行parallel— 同時發送给所有目標'),
broadcastSequential: _('顺序sequential— 逐个发送,严格有序', 'Sequential — send one by one, strictly ordered', '顺序sequential— 逐個發送,嚴格有序'),
broadcastHint: _('当消息需要广播给多个 Agent 时的处理策略。并行更快,顺序更可控', 'Strategy for broadcasting to multiple Agents. Parallel is faster, sequential is more controlled.', '當訊息需要廣播给多個 Agent 時的處理策略。並行更快,顺序更可控'),
slashCommands: _('斜杠命令', 'Slash Commands'),
cmdText: _('文本命令解析', 'Text Command Parsing'),
cmdTextHint: _('允许通过 / 前缀在聊天中执行命令', 'Allow executing commands via / prefix in chat', '允許通過 / 前缀在聊天中執行命令'),
cmdBash: _('Bash 命令', 'Bash Commands'),
cmdBashHint: _('允许用 ! 前缀或 /bash 在聊天中执行 Shell 命令(危险)', 'Allow ! prefix or /bash to execute shell commands in chat (dangerous)', '允許用 ! 前缀或 /bash 在聊天中執行 Shell 命令(危險)'),
cmdConfig: _('/config 命令', '/config Command'),
cmdConfigHint: _('允许在聊天中查看/修改配置', 'Allow viewing/modifying config in chat', '允許在聊天中查看/修改設定'),
cmdDebug: _('/debug 命令', '/debug Command'),
cmdDebugHint: _('允许在聊天中查看调试信息', 'Allow viewing debug info in chat', '允許在聊天中查看除錯資訊'),
cmdRestart: _('重启命令', 'Restart Command', '重啟命令'),
cmdRestartHint: _('允许通过命令重启 Gateway', 'Allow restarting Gateway via command', '允許通過命令重啟 Gateway'),
nativeCommands: _('原生命令注册', 'Native Command Registration', '原生命令註冊'),
nativeLabel: _('原生命令', 'Native Commands'),
nativeAuto: _('自动', 'Auto', '自動'),
nativeEnabled: _('启用', 'Enabled', '啟用'),
nativeDisabled: _('禁用', 'Disabled', '停用'),
nativeHint: _('在支持的渠道Telegram、Discord自动注册原生命令菜单', 'Auto-register native command menus in supported channels (Telegram, Discord)', '在支援的頻道Telegram、Discord自動註冊原生命令菜單'),
webhookSettings: _('Webhook 设置', 'Webhook Settings', 'Webhook 設定'),
webhookEnabled: _('启用 Webhook', 'Enable Webhook', '啟用 Webhook'),
webhookEnabledHint: _('允许外部服务通过 HTTP 触发 AI 执行', 'Allow external services to trigger AI execution via HTTP', '允許外部服務通過 HTTP 觸發 AI 執行'),
webhookPath: _('Webhook 路径', 'Webhook Path', 'Webhook 路徑'),
webhookPathHint: _('Gateway 上暴露的 Webhook 接收路径', 'Webhook receive path exposed on Gateway', 'Gateway 上暴露的 Webhook 接收路徑'),
webhookToken: _('认证 Token', 'Auth Token', '認證 Token'),
webhookTokenHint: _('外部请求需在 Header 中携带此 Token 才能触发 Webhook', 'External requests must include this token in header to trigger Webhook', '外部請求需在 Header 中携帶此 Token 才能觸發 Webhook'),
webhookSessionKey: _('默认 Session Key', 'Default Session Key', '預設 Session Key'),
webhookSessionKeyHint: _('Webhook 触发的 Agent 会话标识。留空则每次自动生成', 'Session identifier for Webhook-triggered Agent. Leave empty for auto-generated.', 'Webhook 觸發的 Agent 對話標識。留空則每次自動生成'),
webhookMaxBody: _('请求体大小限制(字节)', 'Max Body Size (bytes)', '請求體大小限制(位元組)'),
noLimit: _('默认无限制', '', '預設無限制'),
approvalsTitle: _('执行审批转发', 'Execution Approval Forwarding', '執行審批轉發'),
approvalsDesc: _('当 AI 请求执行命令时,将审批请求转发到消息渠道,方便在手机上审批', 'Forward approval requests to messaging channels when AI requests command execution, for mobile approval', '當 AI 請求執行命令時,將審批請求轉發到訊息頻道,方便在手機上審批'),
approvalsEnabled: _('启用审批转发', 'Enable Approval Forwarding', '啟用審批轉發'),
approvalsEnabledHint: _('将执行审批请求转发到配置的消息渠道', 'Forward execution approval requests to configured channels', '將執行審批請求轉發到設定的訊息頻道'),
approvalsMode: _('转发模式', 'Forward Mode', '轉發模式'),
approvalsModeSession: _('原会话session— 发到发起请求的会话', 'Session — forward to the originating session', '原對話session— 發到發起請求的對話'),
approvalsModeTargets: _('指定目标targets— 发到配置的目标渠道', 'Targets — forward to configured target channels', '指定目標targets— 發到設定的目標頻道'),
approvalsModeBoth: _('两者都发both', 'Both', '兩者都發both'),
approvalsForwardExec: _('转发执行请求', 'Forward Exec Requests', '轉發執行請求'),
approvalsForwardExecHint: _('将 exec 审批请求转发到渠道(默认关闭,低风险场景可开启)', 'Forward exec approval requests to channels (off by default, enable for low-risk scenarios)', '將 exec 審批請求轉發到頻道(預設關閉,低風險場景可開啟)'),
pendingApprovals: _('待处理审批队列', 'Pending Approval Queue', '待處理審批佇列'),
refreshApprovals: _('刷新', 'Refresh', '重新整理'),
approvalsLoadingQueue: _('加载审批队列...', 'Loading approval queue...', '載入審批佇列...'),
approvalsQueueEmpty: _('当前没有待处理的审批请求', 'No pending approval requests', '目前沒有待處理的審批請求'),
approvalsGwNotReady: _('Gateway 未连接,无法加载审批队列', 'Gateway not connected, cannot load approval queue', 'Gateway 未連線,無法載入審批佇列'),
approvalsUnsupported: _('当前 Gateway 版本不支持审批队列查询,请升级到 OpenClaw 2026.4.9+', 'Approval queue requires OpenClaw 2026.4.9+', '目前 Gateway 版本不支援審批佇列查詢,請升級到 OpenClaw 2026.4.9+'),
}