lindongyan281 downloads用 OpenAI 兼容 LLM 自动翻译 Obsidian 插件设置弹窗内的全部文本(标签名、描述、按钮等),支持自定义端点/模型/API Key 与测试连接,不修改任何插件文件。
Automatically translates the UI text inside Obsidian's settings modals (plugin settings / core settings) into your target language using any OpenAI-compatible LLM. Defaults to Simplified Chinese and supports any other language. Translation applies automatically about 2 seconds after you open a settings modal — no button clicks needed.
⚠️ This plugin only translates text inside settings modals. It never modifies the main interface, note contents, or any plugin source files. Translations take effect only on the current UI session.
isDesktopOnly: false).cache.json through Obsidian's cross-platform file API (works on desktop and mobile), so the same text is reused across sessions and restarts, saving tokens./chat/completions endpoint URL.You need a working OpenAI-compatible chat completions endpoint, for example:
http://127.0.0.1:11434/v1/chat/completions, model qwen2.5:7b)Both the desktop and mobile versions of Obsidian can reach cloud APIs directly, no proxy required.
https://github.com/lindongyan1992/llm-settings-translatormain.js and manifest.json from the latest release of this repository..obsidian/plugins/llm-settings-translator/ inside your vault.main.js and manifest.json from the latest release and place them into .obsidian/plugins/llm-settings-translator/ using a file manager that can show hidden files. Restart the app and enable the plugin under Installed plugins..obsidian directory, so you need to wait for the official community directory review to pass, then search for "LLM Settings Translator" directly inside the app.This plugin has been submitted to the official Obsidian community directory. Once approved, you can find it under Obsidian Settings → Community plugins → Browse (desktop and mobile), and updates will be handled automatically by Obsidian.
| Setting | Description |
|---|---|
| API endpoint | Full URL of an OpenAI-compatible endpoint, must include the complete /chat/completions path |
| Target language | Default "Simplified Chinese". Common languages can be selected from the dropdown (English / 日本語 / 한국어 / Français / Deutsch…); for others choose "Custom…" and type the language name. Unrecognized names fall back to Simplified Chinese. Reopen a settings modal after changing it |
| Model | The model name to call, e.g. qwen2.5:7b / deepseek-chat / gpt-4o-mini |
| API key | Optional; leave empty for some local / free services |
| Debug mode | Off by default (no diagnostic files written); when enabled, writes diag_*.txt files for troubleshooting |
After configuring, click "Test Connection" to verify that the endpoint and model work.
cache.json and reused across sessions / restarts; polling slows down to 15 seconds when idle.temperature=0), parses the JSON mapping, and writes translations back to the UI.src/main.js (single-file CommonJS implementation, no TypeScript dependency).npm install → npm run build (esbuild bundles to root main.js).npm run dev (esbuild watch mode; rebuilds automatically on source changes).src/main.js, then run npm version patch|minor|major (syncs manifest.json and versions.json automatically).git push --tags triggers GitHub Actions, which builds the plugin and creates a draft release (including main.js + manifest.json with build provenance).main.js is a build artifact (excluded via .gitignore); always edit src/main.js.用 OpenAI 兼容的 LLM 自动把 Obsidian 设置弹窗(插件设置 / 核心设置)里的英文界面翻译成你指定的语言(默认简体中文,可改为任意语言)。打开设置弹窗后约 2 秒内自动生效,无需点击任何按钮。
⚠️ 本插件只翻译设置弹窗内的文字,不修改主界面与笔记正文,也不会改动任何插件的源文件。翻译结果仅在当前会话的界面上生效。
manifest.json 已声明 isDesktopOnly: false)。cache.json(桌面端与移动端均生效),相同文本跨会话 / 重启复用,不重复消耗 token。/chat/completions 地址即可。https://github.com/lindongyan1992/llm-settings-translator,然后启用本插件并配置端点与模型。main.js 和 manifest.json,放入 vault 的 .obsidian/plugins/llm-settings-translator/ 目录,重启 Obsidian 后启用。| 设置项 | 说明 |
|---|---|
| API 端点 | OpenAI 兼容接口的完整地址,必须包含 /chat/completions 全路径 |
| 目标语言 | 默认「简体中文」。常用语言可直接下拉选择,其它语言选「自定义…」后手动输入;无法识别的语言名自动按简体中文翻译 |
| 模型 | 调用的模型名称,例如 qwen2.5:7b / deepseek-chat / gpt-4o-mini |
| API Key | 非必填,部分本地 / 免费服务留空即可 |
| 调试模式 | 关闭(默认)时不写入任何诊断文件;开启后输出 diag_*.txt 便于排查 |
cache.json),相同文本跨会话 / 重启复用;空闲时轮询自动降速至 15 秒。temperature=0),解析 JSON 映射后写回界面。src/main.js(CommonJS 单文件实现,无 TypeScript 依赖)。npm install → npm run build,esbuild 打包生成根目录 main.js。npm run dev(esbuild watch 模式,改源码自动重新打包)。src/main.js 后执行 npm version patch|minor|major(自动同步 manifest.json 与 versions.json);git push --tags 触发 GitHub Actions 自动构建并创建 draft Release;在 GitHub Release 页面补充发布说明后点 Publish release 发布。main.js 是构建产物(已被 .gitignore 排除),修改请始终编辑 src/main.js。