Skip to content

Update plugin 截图翻译 v1.0.0 - #634

Draft
Taitres wants to merge 1 commit into
ZToolsCenter:mainfrom
Taitres:plugin/snap-translate
Draft

Taitres wants to merge 1 commit into
ZToolsCenter:mainfrom
Taitres:plugin/snap-translate

Conversation

@Taitres

@Taitres Taitres commented Sep 30, 2026

Copy link
Copy Markdown
Contributor

插件信息

  • 名称: 截图翻译
  • 插件ID: snap-translate
  • 版本: 1.0.0
  • CLI版本: 1.3.2
  • 描述: 截图 OCR 翻译
  • 作者: Taitres
  • 类型: 更新

本次变更

Added

  • 贴图 OCR 结果弹窗内展示翻译:贴图 OCR 唤起的结果小窗中点击「翻译」按钮,直接在该弹窗内展示翻译结果(自适应调整弹窗高度,原位平滑刷新),不再覆盖桌面悬浮贴图
  • 相同语言自动跳过翻译:识别文本与目标语言一致时(如识别为中文且目标语言为中文),自动跳过翻译 API 调用,直接展示原文并轻提示,避免二次翻译导致乱码
  • 混合文本多行局部翻译:多行混合文本中逐行识别语言,仅对非目标语言行发起翻译请求,目标语言行原样保留并原位拼装回填
  • OCR 识别后智能推断目标语言:贴图 OCR 识别完成后,根据主体语言智能预设互补的目标翻译语言(如检测为中文默认目标设为英文,检测为英文默认目标设为中文)

Changed

  • 弹窗翻译模式下失败时提供清晰 Toast 反馈,避免静默失败无感知

截图 / 演示

自检清单

  • plugin.json 的 name / title / version / description / author 字段均已检查
  • 已移除调试日志、未使用文件、敏感信息(.env、token、密钥等)
  • 本次 PR 的 diff 仅涉及 plugins/snap-translate/ 目录
  • 已在本地 ZTools 客户端实际加载并测试过此插件,主要功能正常
  • 同意以仓库声明的开源协议发布此插件

此 PR 由 ztools-plugin-cli 自动管理:每次 ztools publish 基于最新主仓库重建发布分支;打开的 PR 链接保持不变。

- Initial commit
- Release 0.8.0: pin overlay OCR/translate with host-default-first providers
- chore: shorten plugin description to 截图 OCR 翻译
- docs: add CHANGELOG for 0.8.0
- chore: declare win32 platform for marketplace Windows build
- Release 0.9.0: host-default-first providers, pin at capture origin, overlay result mode
- Release 0.9.0
- docs: complete CHANGELOG for 0.9.0
- Release 1.0.0: popup translation mode, skip same-language translate and smart target lang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant