Skip to content

i18n: localize the native tray menu - #257

Merged
omercelikdev merged 1 commit into
mainfrom
i18n/tray-menu
Jul 12, 2026
Merged

i18n: localize the native tray menu#257
omercelikdev merged 1 commit into
mainfrom
i18n/tray-menu

Conversation

@omercelikdev

Copy link
Copy Markdown
Owner

The tray ("Show QlipLab" / "Quit") is built in Rust at startup, before the webview and i18n exist — so it was permanently English.

Fix

  • Rust — keep the two MenuItem handles in managed state; add a set_tray_labels(show, quit) command that calls set_text on them. Verified with cargo check.
  • FrontendApp calls it once i18n initialises and again on every languageChanged, so the tray follows the app language.

i18n: tray.show / tray.quit ×15 (brand name stays in "Show QlipLab"). tsc clean · 608 tests green.

🤖 Generated with Claude Code

The tray ("Show QlipLab" / "Quit") is built in Rust at startup, before the
webview and i18n exist, so it was always English. Added a
`set_tray_labels(show, quit)` command that relabels the kept menu-item
handles; the frontend calls it once i18n initialises and again on every
`languageChanged`, so the tray follows the app language.

Rust verified with `cargo check`. i18n: tray.show / tray.quit ×15 (the
brand name QlipLab stays in "Show QlipLab").

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@omercelikdev
omercelikdev merged commit b5e68ca into main Jul 12, 2026
@omercelikdev
omercelikdev deleted the i18n/tray-menu branch July 12, 2026 19:07
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.

1 participant