huashu-design
alchaincyf
Huashu Design 3.0 · 在 agent 里打一句话,拿回能交付的设计:网页 / App 原型 / 可编辑 PPTX / 动画 / 信息图 · 六个候选挑三个方向 · 84 种带样张的风格库 · 越用越懂你的外观账本与设计体检 · HTML-native design skill for Claude Code, Codex, Cursor & any agent
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:x01Jin/dsh-auto-i18n
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Translates Chinese interface text from installed DeepSeek Harness plugins into English while you use the web UI.
Most third-party DSH plugins ship Chinese labels, menus, and settings without an English locale. This plugin translates the rendered text in place, so it works with hardcoded strings too, not only with plugins that provide locale files.
Install this directory as a bundle with the Harness plugin manager, either from the Plugins page or with the plugin_manager tool (install_bundle). The plugin market also accepts a GitHub source: point it at https://github.com/x01Jin/dsh-auto-i18n.
The bundle mounts the shipped translation service @deepseek-ai/dsh-experimental-translator, so nothing else needs to be installed.
Open Settings, then General, and find the Auto translate switch.
Translation is on by default. The switch turns it off and restores the original text without a reload. The choice is kept in browser localStorage.
/lingshu). Frames mounted later and frames nested inside other frames are covered too. Frames inside chat or markdown content are left alone, because they hold user material rather than interface text.Skipped on purpose:
pre, code, and kbd content, to protect code and commands.A client half walks the page, collects text nodes and the placeholder, title, aria-label, and alt attributes that contain Chinese, batches up to 24 strings, and posts them to a host route. The host translates through Google first and falls back to Bing, keeps a cache at $DSH_HOME/auto-i18n-cache.json (default ~/.dsh/auto-i18n-cache.json), and returns the results. The client keeps a browser-side cache, so the next page load renders translated text without network calls.
A MutationObserver translates nodes added later, such as panels opened after boot. React re-renders can overwrite a translation; the observer reapplies it from cache.
The engine also attaches to each same-origin iframe document it finds and observes that document on its own, so a plugin that renders its UI in a frame behaves like any other part of the page. A frame that navigates is picked up again on its load event; cross-origin frames are skipped because their documents are unreadable.
Text selected for translation is sent to Google's or Bing's anonymous translate endpoints through the Harness translator service. No API key or account is used. Results are cached locally; nothing else is stored or sent.
index.js: host half, translation route, provider calls, disk cache.client.js: DOM scan, batching, browser cache, settings row.cordis.patch.yml: inserts the translator service row and the plugin row.Check syntax before installing:
node --check index.js
node --check client.js
Install the working copy as a bundle and reload the page. Client changes need a page reload; host changes need a plugin reinstall or an app restart.
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: translation。