Support i18n

This commit is contained in:
huchenlei
2025-08-10 12:36:40 -04:00
parent 38a77abecb
commit 1e6803fd65
8 changed files with 45 additions and 21 deletions

View File

@@ -41,7 +41,9 @@ const mockCommands: ComfyCommandImpl[] = [
icon: 'pi pi-test',
tooltip: 'Test tooltip',
menubarLabel: 'Other Command',
keybinding: null
keybinding: null,
getTranslatedLabel: () => 'Other Command',
getTranslatedMenubarLabel: () => 'Other Command'
} as ComfyCommandImpl
]