Caoshengzhao14 downloadsLightweight translation plugin supporting DeepSeek, Tongyi Qianwen, Doubao, Google Gemini, and arbitrary custom models. Select English text and translate with one click, inserting below the original.
AI Translation is a lightweight, multi-model AI translation plugin designed specifically for Obsidian. It natively connects to major global and domestic LLM providers as well as any OpenAI-compatible API endpoints, allowing you to translate selected text with one click and automatically insert the translated result directly below the original text.
requestUrl — lightweight, fast, and fully cross-platform (desktop & mobile).https://github.com/Wolframscs/obsidian-AI-Translationmain.js, manifest.json, and styles.css from the latest GitHub Release.ai-translation inside your vault's .obsidian/plugins/ directory.In Obsidian Settings > AI Translation:
Chinese, English, Japanese).Compatible with any OpenAI-standard endpoint:
Custom APIhttp://localhost:11434/v1/chat/completions (for local Ollama) or https://api.your-proxy.com/v1/chat/completionsllama3, deepseek-r1, etc.Ctrl/Cmd + P -> run Translate Selection (Insert Below).Alt + T or Ctrl + T) under Settings > Hotkeys > search Translate Selection.本插件是一款为 Obsidian 开发的轻量级多模型翻译辅助工具。支持对接国内外主流大语言模型服务及符合 OpenAI 规范的自定义 API 接口,可实现选中文本的一键翻译与自动插入对照。

.obsidian/plugins/ 目录下。



启用插件后,在 Obsidian 设置 -> Obsidian - Translation (或 AI Translator) 界面选择所需的翻译服务商并配置参数。

DeepSeek。
deepseek-chat)。


Tongyi Qianwen (Qwen)。
qwen-plus)。

Doubao。ep-202406xxxxxxxxxx)。

对于以下预设模型,请输入对应的 API Key 并选择或指定模型:
gpt-4o、gpt-4o-mini 等模型。claude-3-5-sonnet-latest 等模型(支持 Claude 独有的 API 规范和系统提示词格式)。gemini-2.5-flash、gemini-2.5-pro 等模型。deepseek-ai/DeepSeek-V3、deepseek-ai/DeepSeek-R1 等。moonshot-v1-8k 等。glm-4-flash 等。本插件支持任意兼容 OpenAI 规范的自定义接口(如本地部署的 Ollama 或第三方中转代理)。
Custom API (自定义 API)http://localhost:11434/v1/chat/completionsllama3(或本地已下载的其他模型名称)Custom API (自定义 API)https://api.example.com/v1/chat/completions)gpt-4o)配置完成后,您可以通过以下任一方式使用翻译功能:

Ctrl/Cmd + P 打开命令面板。

Translate 并选择 Translator: Translate Selection (Insert Below)。Translate Selection。Translator: Translate Selection (Insert Below) 命令设置一个快捷键(例如 Ctrl + T)。

Chinese)。如需翻译成其他语言(如英文、日文等),请在插件设置的 Target Language 字段中直接修改(例如输入 English, Japanese 等)。若翻译失败,请检查以下内容:
/chat/completions 结尾)。