From e860e04cfa8a969fef67b4b7c3ac5042814b7793 Mon Sep 17 00:00:00 2001 From: Christian Byrne Date: Sat, 23 Aug 2025 13:07:16 -0700 Subject: [PATCH] fix: Make bottom panel tab titles reactive to language changes (#5077) (#5184) * 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: Benjamin Lu Co-authored-by: github-actions --- src/components/bottomPanel/BottomPanel.vue | 19 +++++++++++++------ src/components/topbar/CommandMenubar.vue | 14 +++++++------- .../bottomPanelTabs/useShortcutsTab.ts | 7 ++++--- .../bottomPanelTabs/useTerminalTabs.ts | 6 ++++-- src/locales/ar/main.json | 4 ++-- src/locales/fr/main.json | 4 ++-- src/locales/ja/main.json | 4 ++-- src/locales/ru/main.json | 8 ++++---- src/locales/zh-TW/main.json | 6 +++--- src/stores/workspace/bottomPanelStore.ts | 3 ++- src/types/extensionTypes.ts | 3 ++- 11 files changed, 45 insertions(+), 33 deletions(-) diff --git a/src/components/bottomPanel/BottomPanel.vue b/src/components/bottomPanel/BottomPanel.vue index 63d6874c0..0aff9442d 100644 --- a/src/components/bottomPanel/BottomPanel.vue +++ b/src/components/bottomPanel/BottomPanel.vue @@ -1,6 +1,9 @@