KNGLOKIKO/dsh-plugin-approval-zh ↗★ 0
@local/approval-zh
DSH Host+Client plugin: 权限确认窗口(审批面板)中文化 —— 接管 conversation.composer 审批卡片并用中文重绘,翻译授权原因与命令明细;本地词表优先,model_router 兜底。 适合需要对DSH审批卡片、授权原因和命令明细进行中文翻译的用户。
설치
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KNGLOKIKO/dsh-plugin-approval-zh配置项
编辑 cordis.patch.yml 的 config(改完需重装 bundle 或重启 DSH):
- insert:
- id: approval-zh
name: '@local/approval-zh'
config:
libraryPath: '.../model-router/index.js' # 可选,见下
translateBudgetMs: 2500 # 翻译硬预算,超时放行
useModelRouter: true # false = 只用本地词表
libraryPath 不必手写。不填时按以下顺序自动解析:
- 环境变量
APPROVAL_ZH_MODEL_ROUTER - 与本 bundle 同级的
../model-router/index.js
第 2 条让「把 model-router 和本插件克隆到同一父目录」即可开箱拿到兜底翻译; 都解析不到时只走客户端本地词表,插件照常工作。