[i18n] Translate button widget labels (#2719)

Co-authored-by: github-actions <github-actions@github.com>
This commit is contained in:
Chenlei Hu
2025-02-24 20:31:14 -05:00
committed by GitHub
parent d3dda14267
commit f5cec41130
9 changed files with 19 additions and 4 deletions

View File

@@ -4,6 +4,7 @@ import { IComboWidget } from '@comfyorg/litegraph/dist/types/widgets'
import { useNodeImage, useNodeVideo } from '@/composables/node/useNodeImage'
import { useNodeImageUpload } from '@/composables/node/useNodeImageUpload'
import { useValueTransform } from '@/composables/useValueTransform'
import { t } from '@/i18n'
import type { ComfyWidgetConstructor } from '@/scripts/widgets'
import { useNodeOutputStore } from '@/stores/imagePreviewStore'
import type { ComfyApp } from '@/types'
@@ -85,7 +86,7 @@ export const useImageUploadWidget = () => {
serialize: false
}
)
uploadWidget.label = 'choose file to upload'
uploadWidget.label = t('g.choose_file_to_upload')
// TODO: Explain this?
// @ts-expect-error LGraphNode.callback is not typed