Skip to content

Releases

v0.1.1 — 发布到 npm,安装更省事

Choose a tag to compare

@syzke syzke released this 14 Oct 13:07

dsh-translate-on-select v0.1.1

本次发布没有功能变更,只是把安装路径理顺:插件现在同时发布在 npm 上。

安装

dsh plugin --profile desktop add dsh-translate-on-select

从 npm 安装是预构建包,不需要本机装 git,也不需要 allowBuilds 授权。
跑 dsh web 的话把 --profile desktop 换成 --profile web。

想直接跑源码:

dsh plugin --profile desktop add github:syzke/dsh-translate-on-select#v0.1.1

装完记得重启一次 DeepSeek Harness(注入行在宿主启动时收集,不热生效)。

变更

完整变更:v0.1.0...v0.1.1

v0.1.0 — 首个公开版本

Choose a tag to compare

@syzke syzke released this 12 Oct 07:37

dsh-translate-on-select v0.1.0

DSH 划词翻译插件首个公开版本:选中非中文内容 → 选区下方就地浮出简体中文译文。

安装

dsh plugin --profile desktop add github:syzke/dsh-translate-on-select

装完需要重启一次 DeepSeek Harness(注入表在宿主启动时收集,不热生效)。

包含

  • 划词即译:松手约 200ms 后自动翻译,卡片落在选区正下方(下方空间不够自动翻到上方)
  • 自动跳过中文:纯中文选区不发请求;日语/韩语因假名·谚文会被正确判定为需要翻译
  • 不打扰输入:输入框 / 文本域 / contenteditable 内的选区不触发
  • 自动识别源语言:卡片显示「英语 → 简体中文」
  • 双层 LRU 缓存:同一段文本第二次选中瞬时返回
  • 跟随主题:毛玻璃卡片、骨架屏、尊重 prefers-reduced-motion
  • 可交互:复制译文 / 重新翻译 / Esc 或点空白处关闭
  • 多后端回退:cn.bing.com 为主,MyMemory 为备
  • 零依赖、零构建:纯 JavaScript,无 prepare/build 脚本,安装不需要 allowBuilds 授权

隐私提示

翻译走公共免费接口,选中的文本会被发送到 cn.bing.com(必要时还有 MyMemory)。不要用它翻密钥、隐私数据或未公开的代码。

许可证

MIT