KNGLOKIKO/dsh-plugin-approval-zh ↗★ 0
@local/approval-zh
将权限确认与审批面板重绘为中文 适合需要对DSH审批卡片、授权原因和命令明细进行中文翻译的用户。
安装
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:KNGLOKIKO/dsh-plugin-approval-zh说明文档
阅读完整 README ↗配置项
编辑 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 和本插件克隆到同一父目录」即可开箱拿到兜底翻译; 都解析不到时只走客户端本地词表,插件照常工作。