- Home
- Plugin
- Strumenti e capacità
- dsh-global-ai-translate
L
dsh-global-ai-translate
lwfjyjy/dsh-global-ai-translate
Select text anywhere in DSH and a translate button appears; click it to translate with your default model in a separate one-off call, shown in place in the same floating panel. Its HTTP routes have no DSH access check, so a web page open in your browser could call them.
Installazione
dsh plugin --profile web add github:lwfjyjy/dsh-global-ai-translateREADME
DSH AI 翻译插件
在 DSH 任意位置选中文字,右侧浮出一个翻译按钮:
- 点击按钮 → 变 loading(转圈)→ 用默认大模型「新发一次独立调用」翻译 → 原地展示译文。
- 整个浮层是一个容器,在 按钮 / loading / 译文 / 错误 之间做宽高过渡变形,带容器变形动画。
- 任意阶段右上角都有关闭按钮(也支持 Esc)。
- 浮层挂在
shell.overlay(全帧最高层),即使 DSH 弹窗打开时也能盖在遮罩之上。
结构
index.js:宿主侧,注册POST /dsh-global-ai-translate/translate,用llm服务做一次性独立翻译(不写入当前对话)。client.js:浏览器侧浮层组件,注册到shell.overlay。locale/:中英文案。icon.svg:插件图标。
说明
- 翻译方向自动判定:中文 → 英文,其他 → 简体中文。
- 超长文本会在客户端按段落切成多段分别翻译再拼接。
Plugin correlati
T
archify (deepseek-harness)
tt-a1i/archify
99.5k19 ore faStrumenti e capacitàApache-2.0
T
WeKnora (dsh-weknora)
tencent/weknora
38.1kieriStrumenti e capacità
D
next-ai-draw-io (dsh-plugin)
dayuanjiang/next-ai-draw-io
37.2k14 ore faStrumenti e capacitàApache-2.0
T
weknora
tencent/weknora
20.2k3 mesi faStrumenti e capacità