DSH审批汉化 — approval dialogs translated to Chinese before they render: DeepSeek-powered, host-side, nothing for React to revert.
Install
# from GitHub (first run asks for allowBuilds approval — follow the hint, retry)
dsh plugin --profile web add github:xiyuepcl/dsh-approval-translator
Any plugin you install runs third-party code with your own permissions — it can read your files, use your credentials, and reach the network, and tool approvals don’t sandbox it. GitHub-sourced plugins also run build scripts at install time — pnpm blocks those until you allow them, so an install can stop with ERR_PNPM_GIT_DEP_PREPARE_NOT_ALLOWED or ERR_PNPM_IGNORED_BUILDS; dsh prints the exact key to add under allowBuilds in your profile’s pnpm-workspace.yaml, and the install works on the next run. Allowing a build is a trust decision: only install sources you trust, and pin a commit (github:owner/repo#sha).
README
This plugin publishes its README in Chinese only.
DSH审批汉化 — DeepSeek 驱动的 DeepSeek Harness (dsh) 审批弹窗自动汉化插件。 Agent 请求审批(如沙箱权限升级)时,审批弹窗的说明文字会在到达浏览器之前被翻译成简体中文——弹窗原生渲染中文,React 重渲染也无法还原。命令行保持英文(它是命令,不是说明)。
Approval dialog auto-translation for DeepSeek Harness (dsh). The reason text is translated to Simplified Chinese before it reaches the browser, so React can never revert it; the command line stays English on purpose.
安装 Install
npx -y @deepseek-ai/dsh plugin --profile web-desktop add https://github.com/xiyuepcl/dsh-approval-translator/releases/download/v0.1.3/dsh-translator-0.1.3.tgz
(桌面客户端 EAC 4.x 用 web-desktop profile;CLI 网页版用 web。)装完重启 Web 服务/EAC 即可。无需配置——使用你已配置的 DeepSeek provider/凭证(每次审批约 1 秒 + 少量 token)。
EAC 4.x uses the
web-desktopprofile; the CLI web usesweb. Replace the profile name accordingly.
原理 How it works
- Node 半边以
ctx.on('approval/request', ..., true)(prepend)挂一个瀑布监听器,抢在官方答案器之前用ctx.llm翻译req.reason。 - 持久化的
approval/asked审计事件保留原始 reason;只有展示给用户的文本被翻译。 - 已是中文或不可翻译的 reason 原样放行;翻译失败绝不影响审批(仅记录一条错误日志)。
- 浏览器半边是无操作(早先的 DOM 改写方案被 React 重渲染击败,已弃用)。
卸载 Uninstall
npx -y @deepseek-ai/dsh plugin --profile web-desktop remove dsh-translator
License
MIT
Links
More in this category
zhu1090093659/dsh-web#packages/dsh-task-board★ 8262
Task board for the dsh web GUI: a sidebar multi-column kanban whose cards run in real DSH agent sessions and can also be scheduled with cron expressions, executed host-side even with the browser closed.
zhu1090093659/dsh-web#packages/dsh-web-all★ 8262
Plugin and skin collection for the DSH Web UI: task board, Git graph, right-side panel, remote mobile UI, pet, live token stats, and a skin center.
omdsh-dev/DSH-better-sidebar★ 3943
Full sidebar workbench with file rendering and editing, terminal, Git, and subagents; third-party plugins can register new tabs.
ccch1mneyyy/dsh-TUI★ 3913
Claude Code-style full-screen terminal UI: pixel-whale header, live status line, and streaming thought expansion.
MeteorNOX/DeepSeek-Balance-Whale-Widget★ 3793
A fixed-corner whale widget for the DSH web GUI — balance, today's usage and per-turn cost with peak/off-peak pricing, editable balance-alert and daily-budget bubbles, a module-based custom bubble queue with A/B weighted choices and random lines or images, 30+ vendor templates (OpenAI, OpenRouter, Kimi, SiliconFlow, Ark, Zhipu, MiniMax and more) with per-model balance and subscription quota, plus task-end sound, imported audio, custom roles and a resource manager. Local-only, no telemetry.
Devin-AXIS/deepseek-design#deepseek-idesign★ 1414
Visual design studio for websites, app prototypes, posters, cards, reports, and magazines, with templates, direct element editing, selection-aware AI draft handoff, and export.
Community comments
Comments are public GitHub Discussions. Loading them connects to GitHub and Giscus; a GitHub account is required to post.