Introduction

When developing agents or managing permissions with DeepSeek Harness (DSH), the explanatory text in approval pop-up windows is usually in English when an Agent issues an approval request (such as sandbox permission escalation). For Chinese-speaking users, repeatedly reading English explanations reduces approval efficiency. dsh-translator is designed to address this pain point by intercepting and translating the text before rendering, so that approval pop-up windows directly display Simplified Chinese.

Plugin Introduction

dsh-translator is a plugin maintained by xiyuepcl and part of the DeepSeek Harness ecosystem. It uses the configured DeepSeek model to automatically translate approval reasons into Simplified Chinese while preserving the original English text for audit purposes, and can be used without additional configuration.

Core Features

  1. Automatic Translation: Translates approval reasons into Simplified Chinese.
  2. Command-Line Preservation: English descriptions in command lines remain unchanged (because they are commands rather than explanatory text).
  3. Audit Log Preservation: Persisted approval/asked audit events retain the original reason.
  4. Smart Pass-Through: Text that is already in Chinese or cannot be translated is passed through unchanged.
  5. Fallback Mechanism: A translation failure does not block the approval process; only an error log is recorded.
  6. Zero Configuration: Directly uses the DeepSeek provider/credentials configured by the user.
  7. No Browser-Side Changes: The translation logic is completed on the Node side, so no extra operations are required on the browser side.

Installation and Enablement

Before installing, confirm the environment: EAC 4.x uses the web-desktop profile; the CLI web version uses the web profile.

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

After installation is complete, restart the Web service or EAC client for the changes to take effect.

Principle and Notes

This plugin mounts a listener on the Node side and intercepts and translates the text before approval requests reach the browser, avoiding the issue of React re-rendering restoring the original text. Persisted audit events retain the original data; only the text displayed to users is translated.

Applicable Scenarios and Notes:
* Users who need to view Chinese explanations directly in DSH approval workflows.
* The plugin runs with the permissions of the current DSH process; it is recommended to review the source code and license before installation.

Summary

dsh-translator provides concise Chinese support for DSH approval workflows, resolves React rendering conflicts by translating text before rendering, and ensures the integrity of audit logs.