[i18n] Translate node input label (#1880)

This commit is contained in:
Chenlei Hu
2024-12-11 14:57:49 -08:00
committed by GitHub
parent ebbff358a0
commit c60645d9f4
7 changed files with 21257 additions and 1069 deletions

View File

@@ -143,10 +143,7 @@ test('collect-i18n', async ({ comfyPage }) => {
function extractInputs(nodeDef: ComfyNodeDefImpl) {
const inputs = Object.fromEntries(
nodeDef.inputs.all.flatMap((input) => {
// TODO(huchenlei): translate input name. Somehow `CLIPAttentionMultiply` will
// cause all subsequent translations to fail (Raw english values
// are generated).
const name = undefined
const name = input.name
const tooltip = input.tooltip
if (name === undefined && tooltip === undefined) {