Skip to content

[FEATURE]: add i18n support for desktop application menu (zh-CN) #35601

Closed as not planned

Description

@2024sy

Feature hasn`t been suggested before.

  • I have verified this feature Im about to request hasnt been suggested before.

Describe the enhancement you want to request

The OpenCode desktop application menu bar (File/Edit/View/Go/Window/Help) currently has no i18n support - menu labels are hardcoded in English in packages/app/src/desktop-menu.ts, even when the app language is set to Chinese (zh-CN).

Id like to add Chinese translations for all desktop menu items by integrating them into the existing i18n framework. The windows-app-menu.tsxcomponent already runs in the renderer process whereuseLanguage()is available, so this is a straightforward addition ofmenu.*` i18n keys.

Related closed issues:

Implementation approach:

  • Add 48 menu.* i18n keys to en.ts and zh.ts
  • Update desktop-menu.ts labels to use i18n keys
  • Wire useLanguage() translation in windows-app-menu.tsx
  • Resolve labels in menu.ts for macOS via en.ts import

Activity

  1. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • This issue does not use one of the three required issue templates (Bug Report, Feature Request, or Question). The content reads like a pull request description (listing changes and verification steps) rather than an issue report. Please use the Feature Request template if you are requesting this feature, or submit this as a pull request instead.
    • Feature Request issues must have a title starting with [FEATURE]: and include the required verification checkbox from the template.

    Please edit this issue to address the above within 2 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. changed the title [-]feat: add i18n support for desktop application menu (zh-CN)[/-] [+][FEATURE]: add i18n support for desktop application menu (zh-CN)[/+] on Jul 6, 2026
  3. github-actions commented on Jul 6, 2026

    @github-actions
    Contributor

    Thanks for updating the issue! It now follows the Feature Request template correctly. We appreciate the clear description and the context on related issues.

  4. wowbbs commented on Jul 19, 2026

    @wowbbs

    Yes, as of now, the latest desktop version still has the issue mentioned above.

  5. xingxiulaomo commented on Jul 20, 2026

    @xingxiulaomo

    👍 +1 Chinese menu localization is needed. Thanks for working on this!

  6. github-actions commented on Sep 19, 2026

    @github-actions
    Contributor

    To stay organized issues are automatically closed after 60 days of no activity. If the issue is still relevant please open a new one.

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

Metadata

Metadata

Assignees

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