[i18n] Add commands label translation (#1890)

* [i18n] Add commands label translation

* Use translation
This commit is contained in:
Chenlei Hu
2024-12-12 09:28:47 -08:00
committed by GitHub
parent c5135afd29
commit 4997d13219
16 changed files with 1066 additions and 119 deletions

View File

@@ -47,7 +47,7 @@ export const useBottomPanelStore = defineStore('bottomPanel', () => {
useCommandStore().registerCommand({
id: `Workspace.ToggleBottomPanelTab.${tab.id}`,
icon: 'pi pi-list',
label: tab.title,
label: `Toggle ${tab.title} Bottom Panel`,
function: () => toggleBottomPanelTab(tab.id)
})
}

View File

@@ -27,7 +27,7 @@ export const useSidebarTabStore = defineStore('sidebarTab', () => {
useCommandStore().registerCommand({
id: `Workspace.ToggleSidebarTab.${tab.id}`,
icon: tab.icon,
label: tab.tooltip,
label: `Toggle ${tab.title} Sidebar`,
tooltip: tab.tooltip,
versionAdded: '1.3.9',
function: () => {