Skip to content

Conversation

@christian-byrne
Copy link
Contributor

@christian-byrne christian-byrne commented Aug 23, 2025

Backport of #5077 to core/1.25

This change fixes bottom panel tab titles and command menu bar extraMenuItems not updating when switching languages by:

  • Adding titleKey field to BottomPanelExtension interface to store i18n keys
  • Updating core tab definitions to use titleKey
  • Modifying BottomPanel.vue to dynamically translate titles using $t() function
  • Adding locale key to Tabs component for proper re-rendering on language change
  • Converting extraMenuItems to computed for reactivity
  • Maintaining backward compatibility for extensions using static title strings

Note: PR #5005 (Chinese translation fixes) was skipped due to complex merge conflicts with localization files that don't exist in core/1.25.

┆Issue is synchronized with this Notion page by Unito

* computed extraMenuItems

* add i18n key option

* underline fix

* Update locales [skip ci]

* restore title

* Update locales [skip ci]

* refactor: Extract tab title logic to helper method for better readability

- Moved complex nested ternary logic from template to getTabDisplayTitle helper
- Improves code readability and maintainability
- Addresses review feedback about using computed/method for performance

---------

Co-authored-by: github-actions <[email protected]>
@christian-byrne christian-byrne added the backport Backporting a PR onto a release candidate label Aug 23, 2025
@christian-byrne christian-byrne merged commit e860e04 into core/1.25 Aug 23, 2025
2 checks passed
@christian-byrne christian-byrne deleted the backport-5077-5005-to-1.25 branch August 23, 2025 20:07
@arjansingh arjansingh assigned arjansingh and unassigned arjansingh Aug 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport Backporting a PR onto a release candidate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants