Anki add-on: Anki 划词翻译/Anki Selection Translator

Anki Selection Translator 中文说明 这是一个用于 Anki 复习界面 的划词翻译插件。你可以在卡片中选中文字后按快捷键翻译，也可以开启“划词即翻译”模式，选中文字后自动显示翻译结果。 功能特性 支持 DeepSeek、OpenAI、Gemini、DeepL 支持快捷键触发和划词自动触发 翻译结果以非阻塞浮层显示，无需点击确认 点击浮层外任意位置即可关闭 本地 50 条 LRU 缓存，命中缓存时不会重复请求 API 图形化配置界面 API key 只从 Anki 插件配置读取，不写死在代码中 配置方法 安装后请在 Anki 中打开： 工具 -> 插件 -> Anki Selection Translator -> 配置 输入你的 API key，选择翻译服务商，并设置触发模式。修改设置后，请重启 Anki 或重新进入复习界面。 English Description Anki Selection Translator is an add-on for translating selected text directly in Anki’s review screen. You can trigger translation with a keyboard shortcut, or enable automatic selection mode to translate immediately after selecting text. Features Supports DeepSeek, OpenAI, Gemini, and DeepL Shortcut mode and automatic selection mode Non-blocking floating popup, no confirmation dialog required Click outside the popup to close it Local 50-entry LRU cache to avoid duplicate API requests Graphical settings dialog API keys are read from Anki add-on config only, never hardcoded Configuration After installation, open: Tools -> Add-ons -> Anki Selection Translator -> Config Enter your API key, choose a provider, and select the trigger mode. After changing settings, restart Anki or re-enter the review screen.

GitHub repository: stors789/anki-selection-translator
Repository description: Anki add-on for translating selected review text with DeepSeek, OpenAI, Gemini, and DeepL
Languages: Python