(function(){
    if(!window.StudioI18n) return;
    window.StudioI18n.register({
        "comfy.title": { zh: "工作流设置", en: "Workflow Settings" },
        "comfy.subtitle": { zh: "选择本地 ComfyUI 工作流，配置可暴露到画布的输入参数。", en: "Choose local ComfyUI workflows, then configure the inputs exposed to Canvas." },
        "comfy.localWorkflowMode": { zh: "本地 ComfyUI 工作流", en: "Local ComfyUI Workflow" },
        "comfy.workflowList": { zh: "工作流列表", en: "Workflows" },
        "comfy.uploadWorkflow": { zh: "上传工作流", en: "Upload Workflow" },
        "comfy.nodePreview": { zh: "画布节点预览", en: "Canvas Node Preview" },
        "comfy.live": { zh: "实时", en: "Live" },
        "comfy.previewDesc": { zh: "这个工作流在画布 Comfy 节点上将显示出的控件，可直接填写并点击「运行测试」。", en: "Controls shown by this workflow in the Canvas Comfy node. Fill them here and run a test directly." },
        "comfy.previewEmpty": { zh: "勾选节点输入字段后<br>预览将出现在这里", en: "Expose node input fields<br>to preview them here" },
        "comfy.workflowName": { zh: "工作流名称", en: "Workflow name" },
        "comfy.editorSubDefault": { zh: "从左侧列表选择，或上传新的 API 工作流", en: "Select a workflow on the left, or upload a new API workflow" },
        "comfy.saveConfig": { zh: "保存配置", en: "Save Config" },
        "comfy.workflow": { zh: "工作流", en: "Workflow" },
        "comfy.testCanvas": { zh: "测试画布", en: "Test Canvas" },
        "comfy.showNodeList": { zh: "显示完整节点列表", en: "Show full node list" },
        "comfy.hideNodeList": { zh: "收起节点列表", en: "Collapse node list" },
        "comfy.runTest": { zh: "运行测试", en: "Run Test" },
        "comfy.runningTest": { zh: "运行中...", en: "Running..." },
        "comfy.addPrompt": { zh: "提示词", en: "Prompt" },
        "comfy.addImage": { zh: "图片", en: "Image" },
        "comfy.addVideo": { zh: "视频", en: "Video" },
        "comfy.addAudio": { zh: "音频", en: "Audio" },
        "comfy.promptNode": { zh: "提示词", en: "Prompt" },
        "comfy.imageNode": { zh: "图片", en: "Image" },
        "comfy.videoNode": { zh: "视频", en: "Video" },
        "comfy.audioNode": { zh: "音频", en: "Audio" },
        "comfy.output": { zh: "输出", en: "Output" },
        "comfy.promptPlaceholder": { zh: "输入提示词", en: "Enter prompt" },
        "comfy.clickUploadImage": { zh: "点击上传图片", en: "Click to upload image" },
        "comfy.clickUploadVideo": { zh: "点击上传视频", en: "Click to upload video" },
        "comfy.clickUploadAudio": { zh: "点击上传音频", en: "Click to upload audio" },
        "comfy.resultHere": { zh: "运行后显示结果", en: "Result appears here after running" },
        "comfy.runSuccess": { zh: "运行成功", en: "Run succeeded" },
        "comfy.inputs": { zh: "Inputs", en: "Inputs" },
        "comfy.needsImages": { zh: "需要 {count} 张图片", en: "Needs {count} image(s)" },
        "comfy.acceptsPrompt": { zh: "接收提示词", en: "accepts prompt" },
        "comfy.noPromptField": { zh: "无提示词字段", en: "no prompt field" },
        "comfy.otherParamsHere": { zh: "其他暴露字段会在这里调整", en: "Other exposed fields appear here" },
        "comfy.noConfigFields": { zh: "此节点没有可配置字段（所有输入都来自连线）", en: "This node has no configurable fields; all inputs come from links." },
        "comfy.noConfigInputs": { zh: "此节点没有可配置字段（输入都来自连线）", en: "This node has no configurable fields; inputs come from links." },
        "comfy.fieldCount": { zh: "{count} 个字段", en: "{count} field(s)" },
        "comfy.nodeStats": { zh: "{nodes} 个节点 · 已暴露 {fields} 个字段", en: "{nodes} nodes · {fields} exposed field(s)" },
        "comfy.builtin": { zh: "内置", en: "Built-in" },
        "comfy.configurableCount": { zh: "{count} 个可配字段", en: "{count} configurable field(s)" },
        "comfy.exposedCount": { zh: "{count} 已暴露", en: "{count} exposed" },
        "comfy.usedCount": { zh: "{count} 已用", en: "{count} used" },
        "comfy.defaultValue": { zh: "默认值：", en: "Default: " },
        "comfy.displayName": { zh: "显示名称", en: "Display name" },
        "comfy.dropdownOptions": { zh: "每行一个选项", en: "One option per line" },
        "comfy.noOptions": { zh: "(无选项)", en: "(No options)" },
        "comfy.uploadFailed": { zh: "上传失败", en: "Upload failed" },
        "comfy.imageUploadFailed": { zh: "图片上传失败", en: "Image upload failed" },
        "comfy.videoUploadFailed": { zh: "视频上传失败", en: "Video upload failed" },
        "comfy.audioUploadFailed": { zh: "音频上传失败", en: "Audio upload failed" },
        "comfy.loadFailed": { zh: "加载失败", en: "Load failed" },
        "comfy.loading": { zh: "加载中...", en: "Loading..." },
        "comfy.openFailed": { zh: "打开失败", en: "Open failed" },
        "comfy.saveMissingName": { zh: "字段 \"{field}\" 缺少显示名称", en: "Field \"{field}\" is missing a display name" },
        "comfy.saving": { zh: "保存中...", en: "Saving..." },
        "comfy.saved": { zh: "已保存", en: "Saved" },
        "comfy.saveFailed": { zh: "保存失败", en: "Save failed" },
        "comfy.deleteConfirm": { zh: "确认删除工作流「{name}」？此操作不可恢复。", en: "Delete workflow \"{name}\"? This cannot be undone." },
        "comfy.deleteFailed": { zh: "删除失败", en: "Delete failed" },
        "comfy.runFailed": { zh: "运行失败", en: "Run failed" },
        "comfy.invalidJson": { zh: "不是有效的 JSON 文件", en: "Not a valid JSON file" },
        "comfy.namePrompt": { zh: "给这个工作流起个名字（中文/英文/数字/_-.）：", en: "Name this workflow (letters/numbers/_-.):" },
        "comfy.uploaded": { zh: "已上传：", en: "Uploaded: " }
    });
})();
