DeepSeek-Reasonix icon indicating copy to clipboard operation
DeepSeek-Reasonix copied to clipboard

[Bug]: [i18n] 桌面版 UI 语言不从 reasonix.toml 读取,缺少语言切换,部分标签仍为英文

Open onlyjco opened this issue 5 months ago • 0 comments

Version line

v2 — Go rewrite (1.x), main-v2 (active development)

Exact version

1.8.1

What happened?

正文 环境: Windows, Reasonix Desktop v1.8.1

问题 1 — 语言读取源不对 src/renderer/src/main.ts 中 i18n 语言从 localStorage.getItem("reasonix.lang") 读取,完全不看 reasonix.toml 配置文件中的 language 和 [desktop] language 设置。用户在配置文件里设了 language = "zh" 毫无效果。

问题 2 — 设置页面没有语言切换 Settings 页面只有推理强度、API Key、MCP 配置等,但没有语言切换选项,用户无法在界面中切换中英文。

问题 3 — 部分 UI 标签仍为英文 右侧概览面板及状态栏中部分标签(如 "prompt completion"、状态栏项等)仍显示英文,未纳入 vue-i18n 翻译。

建议

桌面版语言从 reasonix.toml 的 language / [desktop] language 读取 Settings > 通用 增加语言选择下拉框 完善 zh-CN 翻译覆盖所有 UI 元素 方式二:发邮件 收件人: [email protected] 标题: [Feedback] Desktop UI Chinese translation incomplete 内容:同上

分析参考(供开发者) 在 src/renderer/src/main.ts 中:

const i18n = createI18n({ locale: localStorage.getItem("reasonix.lang") || "zh-CN", ... }) app.use(ElementPlus, { locale: localStorage.getItem("reasonix.lang") === "en" ? en : zhCn, }) 建议改为通过 IPC 读取配置文件中的语言设置:

const userLang = await window.api.getConfigLanguage() // userLang 来自 reasonix.toml 的 [desktop] language

Steps to reproduce

正文 环境: Windows, Reasonix Desktop v1.8.1

问题 1 — 语言读取源不对 src/renderer/src/main.ts 中 i18n 语言从 localStorage.getItem("reasonix.lang") 读取,完全不看 reasonix.toml 配置文件中的 language 和 [desktop] language 设置。用户在配置文件里设了 language = "zh" 毫无效果。

问题 2 — 设置页面没有语言切换 Settings 页面只有推理强度、API Key、MCP 配置等,但没有语言切换选项,用户无法在界面中切换中英文。

问题 3 — 部分 UI 标签仍为英文 右侧概览面板及状态栏中部分标签(如 "prompt completion"、状态栏项等)仍显示英文,未纳入 vue-i18n 翻译。

建议

桌面版语言从 reasonix.toml 的 language / [desktop] language 读取 Settings > 通用 增加语言选择下拉框 完善 zh-CN 翻译覆盖所有 UI 元素 方式二:发邮件 收件人: [email protected] 标题: [Feedback] Desktop UI Chinese translation incomplete 内容:同上

分析参考(供开发者) 在 src/renderer/src/main.ts 中:

const i18n = createI18n({ locale: localStorage.getItem("reasonix.lang") || "zh-CN", ... }) app.use(ElementPlus, { locale: localStorage.getItem("reasonix.lang") === "en" ? en : zhCn, }) 建议改为通过 IPC 读取配置文件中的语言设置:

const userLang = await window.api.getConfigLanguage() // userLang 来自 reasonix.toml 的 [desktop] language

OS / platform

Windows, Reasonix Desktop v1.8.1

Relevant logs or output


onlyjco avatar Jun 15 '26 19:06 onlyjco