Skip to content

feat(tray): 支持托盘程序 i18n#9

Merged
ByteColtX merged 1 commit into
mainfrom
codex/tray-i18n-issue-8
May 12, 2026
Merged

feat(tray): 支持托盘程序 i18n#9
ByteColtX merged 1 commit into
mainfrom
codex/tray-i18n-issue-8

Conversation

@ByteColtX
Copy link
Copy Markdown
Owner

摘要

  • 新增托盘 i18n 文案层,支持 zh-CN / en-US,并在系统语言不可识别时回退英文
  • 在配置中持久化托盘语言偏好,支持跟随系统、英文、简体中文
  • Windows 托盘菜单接入语言切换、状态、占位项、配对提示、开始/停止串流等用户可见文案
  • 增加语言回退、文案映射、配置读写和托盘语言切换相关测试

验证

  • cargo fmt --all
  • cargo clippy --all-targets -- -D warnings
  • cargo test --all-targets
  • RC_PATH=/usr/bin/true cargo check --target x86_64-pc-windows-msvc
  • RC_PATH=/usr/bin/true cargo clippy --target x86_64-pc-windows-msvc -- -D warnings
  • git diff --check

说明:直接运行 Windows target check 时,本机缺少 llvm-rc,因此使用 RC_PATH=/usr/bin/true 绕过资源编译器,只验证 Rust 代码路径。

Closes #8

@ByteColtX ByteColtX merged commit 7fa16c5 into main May 12, 2026
1 check passed
@ByteColtX ByteColtX deleted the codex/tray-i18n-issue-8 branch May 12, 2026 05:28
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.

feat(tray): 支持托盘程序 i18n

1 participant