Skip to content

[Bug] packaged app shows English macOS Window-management menu items even when the UI language is not English #5130

Closed

Description

@legsing

Description

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

  1. Set the macOS system language to Simplified Chinese (any non-English supported language works).
  2. Install MarkText from the arm64 DMG (v0.19.1) and set the app language to 简体中文.
  3. 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

OS Version

macOS 15 (darwin 25.5.0, arm64)

Reproducibility

  • I can reliably reproduce this issue

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions