返回目录
生活娱乐 插件

dsh-all-over-chinese-to-english

abdelrhmanwaelbishr/dsh-all-over-chinese-to-english

Translates Chinese text across the DeepSeek Harness interface into English - plugin pages, settings, dropdowns, view tabs and iframe panels.

Stars
0
Forks
0
Issues
0
更新
8 天前

PROJECT TOPICS

项目标签

INSTALL REFERENCE

安装参考

未验证
dsh plugin --profile web add github:abdelrhmanwaelbishr/dsh-all-over-chinese-to-english

该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。

PROJECT README

README

All-Over Chinese to English

Translates Chinese text across the whole DSH interface into English — plugin pages, plugin settings, dropdown menus, plugin View tabs, the top bar, and same-origin iframe panels such as the MCP Connector.

It ships as one installable bundle with two halves.

  • Host (index.js) registers POST /api/all-over-chinese-to-english, a batch endpoint that translates short Chinese strings and caches the results in memory. Translation prefers the shipped anonymous translator service (Bing by default, Google as a fallback), which needs no account or API key. If that service is unavailable it falls back to the configured default model through the llm service.
  • Client (client.js) observes the page for Chinese text nodes and translatable attributes, debounces edits, and replaces the text in place with the English translation. A MutationObserver re-checks content React re-renders, so translated strings stay translated after navigation and re-render.

What gets translated

Surface Example
Plugin pages and detail panels Plugin READMEs, capability lists
Plugin settings Labels, hints, and dropdown menus (native <select> lists and custom popovers)
Sidebar plugin pages Trash, Plugins, and other panels
Plugin Views and their top bar tabs e.g. the dsh-session-superagent view and its tab label
Same-origin iframe panels The whole MCP Connector page (<iframe src="/mcp-connector/ui/">)
Display-only attributes placeholder, title, aria-label, alt, label
The agent's own conversation text Assistant messages and thinking titles such as ⏵ 验证图片是否已对齐

What is deliberately left alone

Chat rows authored by the user are never scanned or translated: data-chat-flow-kind="user" and "steering" rows, the optimistic submission echo (data-submission-echo), tool output (tool-result), the composer and its dock, and everything typed into a field. The Trajectory table and the Context/Fleet dashboard render stored raw payloads (including user prompts and tool output), so those views stay untranslated as a whole. A plugin View is recognised by the absence of those conversation markers inside the same conversation.view slot.

Also skipped: script, style, code, pre, svg, canvas, math, video, audio, fields where the user types (input, textarea, contenteditable), anything marked translate="no" or data-atz-ignore, and strings longer than 800 characters. Option values and form-field values stay untouched, so saved configuration keeps the original value.

Configuration

Configured on the plugin row:

Key Default Meaning
enabled true Turn automatic translation on or off.
targetLanguage en Target language passed to the translator service.

The plugin's own switch lives on the Plugins page. Turning it off restores the original Chinese on the next render.

Install

dsh plugin add abdelrhmanwaelbishr/dsh-all-over-chinese-to-english

Or, from a local checkout, add the package directory as a profile bundle. The bundle also mounts the @deepseek-ai/dsh-experimental-translator service so the free translation route exists; you do not need to enable @deepseek-ai/dsh-experimental-cot-translation-bundle yourself.

A status file is written to ~/.dsh/all-over-chinese-to-english-status.json (translator, llm, connection, enabled, and a live translatorTest), and an activity log to ~/.dsh/all-over-chinese-to-english-client.log. The log records request counts only, never translated text.

License

MIT

CLASSIFICATION EVIDENCE

分类依据

项目类型插件
功能分类生活娱乐
规则置信度高

系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: translation。