You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug] packaged app shows English macOS Window-management menu items even when the UI language is not English #5130
In the packaged (DMG) build, macOS-injected menu items stay in English regardless of the app language and system language. electron-builder.yml sets electronLanguages: [en-US], which prunes Electron's per-language .lproj folders from MarkText.app. macOS therefore considers the bundle English-only and renders all system-provided UI in English — e.g. the macOS Sequoia Window-management items injected into the app's Window menu. MarkText's own menu items are unaffected (they come from the in-built locale JSONs); only OS-provided strings are affected.
A dev run (pnpm dev) does not reproduce this because it uses the unpruned Electron.app, which keeps all .lproj declarations.
Steps to Reproduce
Set the macOS system language to Simplified Chinese (any non-English supported language works).
Install MarkText from the arm64 DMG (v0.19.1) and set the app language to 简体中文.
Open the 窗口 (Window) menu.
Expected Behavior
The whole menu is in Chinese, including the macOS-provided section at the top (Fill/Center/Enter Full Screen/Move & Resize/…).
Actual Behavior
MarkText's own items (最小化 / 总是在最前面 / 放大 / 缩小 / 全屏 / 将所有窗口置于前台) are Chinese, but the macOS-injected section above them is English: Fill ⌃⌥F, Center ⌃⌥C, Enter Full Screen ⌥F, Move & Resize ▸, Full Screen Tile ▸, Remove Window from Set.
Screenshots / Logs
See attached screenshot (Window.png) — Chinese system locale and app language, English system menu items.
Operating System
macOS
MarkText Version
v0.19.1 (DMG), reproducible on develop packaging config
Activity