Skip to content

完善桌面与 iOS 中英文本地化,添加 macOS 设置快捷键 ⌘, | Expand English and Chinese localization and add macOS Settings shortcut - #88

Merged
qybaihe merged 3 commits into
qybaihe:mainfrom
hughesyadaddy:improve-localization-native-settings
Nov 28, 2026

Conversation

@hughesyadaddy

@hughesyadaddy hughesyadaddy commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

简体中文

改动

  • 补齐桌面端中英文文案:侧栏、入门引导、账号设置、各平台面板、聊天与群聊操作、错误提示,以及 macOS 原生登录、导入导出和确认对话框。已知的应用错误仅在显示时翻译,不修改内部错误、协议字段或用户内容。
  • 在 macOS 添加 BotArk → 设置… 和 ⌘,。两者都打开现有设置页,必要时恢复主窗口并等待界面就绪。桌面端首次启动优先使用受支持的系统语言,否则使用英语;保留已有用户的语言偏好。原生菜单和对话框在首选项加载后跟随应用语言;加载前使用系统语言。
  • iOS 补齐 138 条应用文案的英语和简体中文,包括标签栏、入门、聊天、审批、配对和权限提示。未修改 iOS 传输逻辑。

验证

  • Intel macOS:桌面 TypeScript 类型检查、生产构建与完整 Vitest 套件通过(824 项测试)。新增语言切换、占位符、原生对话框语言和已知 IPC 错误的测试。另在隔离的 Electron 配置中验证:中文系统配英文应用、英文系统配中文应用,菜单均跟随已保存的语言及实时切换,并可打开设置。
  • 在 macOS 的本地验证版本手动检查了设置快捷键、窗口恢复、入门、Grok 账号设置和 MCP JSON 无效输入的英文错误。未使用真实账号或凭据测试登录。
  • iOS 随该 PR 的原有提交在 Xcode 26.5 完成无签名构建;8 项模拟器 XCTest 通过,包括检查两个语言包。本次补充没有改动 iOS。
  • 不翻译第三方网页、聊天内容或第三方返回的未知错误。未全面翻译 Android,也未人工遍历所有需要登录的平台状态。

English

Changes

  • Extend English and Simplified Chinese coverage across the desktop sidebar, onboarding, account and provider panels, chat and group chat controls, error displays, and native sign-in, import/export, and consent dialogs. Translate known app diagnostics at display time without changing internal errors, protocol fields, or user content.
  • Add BotArk → Settings… and ⌘, on macOS. Both open the existing Settings view, restoring the main window and waiting for it when needed. New desktop profiles use the first supported system language and fall back to English; saved preferences remain intact. Native menus and dialogs use the system language until the app preference loads, then follow the in-app preference.
  • Localize 138 app-owned iOS strings in English and Simplified Chinese, including tabs, onboarding, chat, approvals, pairing, and permission prompts. No iOS transport changes.

Verification

  • Intel macOS: TypeScript checks, the production build, and the full Vitest suite passed (824 tests). Added coverage for language selection, placeholders, native dialog copy, and known IPC diagnostics. Isolated Electron smoke tests verified that the native Settings menu follows the saved app preference and live language changes in both system/app mismatch directions, and still opens Settings.
  • Manually checked the Settings shortcut, minimized-window restore, onboarding, Grok account settings, and English validation for invalid MCP JSON on local macOS verification builds. No live provider sign-in or credentials used.
  • The original iOS commit in this PR passed an unsigned Xcode 26.5 build and all 8 simulator XCTests, including both bundled languages. This desktop follow-up does not change iOS.
  • Provider-hosted pages, chat content, and unknown third-party errors are not translated. Android is not covered, and not every sign-in-only platform state was manually exercised.

@hughesyadaddy hughesyadaddy changed the title Improve localization and add native macOS Settings shortcut 改进中英文本地化,添加 macOS 设置快捷键 ⌘, | Improve localization and add macOS Settings shortcut Nov 27, 2026
@hughesyadaddy
hughesyadaddy marked this pull request as ready for review November 27, 2026 18:17
@hughesyadaddy hughesyadaddy changed the title 改进中英文本地化,添加 macOS 设置快捷键 ⌘, | Improve localization and add macOS Settings shortcut 完善桌面与 iOS 中英文本地化,添加 macOS 设置快捷键 ⌘, | Expand English and Chinese localization and add macOS Settings shortcut Nov 27, 2026
@qybaihe
qybaihe merged commit e9d2f86 into qybaihe:main Nov 28, 2026
3 checks passed
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.

2 participants