Skip to content

fix(i18n): translate Windows desktop app menu (File/Edit/View/Go) for all locales#34103

Open
Lib-LOCALE wants to merge 1 commit into
anomalyco:devfrom
Lib-LOCALE:fix/windows-menu-i18n
Open

fix(i18n): translate Windows desktop app menu (File/Edit/View/Go) for all locales#34103
Lib-LOCALE wants to merge 1 commit into
anomalyco:devfrom
Lib-LOCALE:fix/windows-menu-i18n

Conversation

@Lib-LOCALE

@Lib-LOCALE Lib-LOCALE commented Jun 26, 2026

Copy link
Copy Markdown

Issue for this PR

Closes #28797

Type of change

  • Bug fix

What does this PR do?

The Windows desktop app menu items (File, Edit, View, Go, Window, Help) were hardcoded in English in \desktop-menu.ts\ and bypassed the i18n system entirely. When the app language was set to a non-English locale, the menu stayed in English.

This PR adds a \labelKey\ field to the menu item types that maps to i18n translation keys. The \WindowsAppMenu\ component now looks up translations via \useI18n(), falling back to the English label when no key is present. French translations for all menu items are included — other locales can add theirs in the same way.

How did you verify your code works?

Reviewed all 4 modified files for correctness: types are backward-compatible (optional field), the component uses the existing \useI18n\ pattern already used elsewhere in the app, and translation keys follow the existing naming conventions.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@github-actions github-actions Bot added needs:compliance This means the issue will auto-close after 2 hours. needs:issue labels Jun 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions github-actions Bot removed needs:issue needs:compliance This means the issue will auto-close after 2 hours. labels Jun 26, 2026
@github-actions

Copy link
Copy Markdown
Contributor

Thanks for updating your PR! It now meets our contributing guidelines. 👍

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.

[BUG]: Top-left menu remains in English when language is set to Chinese

1 participant