From 3620e160a7fa4f083fe483ffd9f54c4e32a34ca6 Mon Sep 17 00:00:00 2001 From: Abdullah Alfaraj <7842232+AbdullahAlfaraj@users.noreply.github.com> Date: Thu, 16 Nov 2023 22:15:43 +0300 Subject: [PATCH] Localize the label of generate button --- i18n/zh_CN/ps-plugin.json | 4 ++-- typescripts/session/generate.tsx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/i18n/zh_CN/ps-plugin.json b/i18n/zh_CN/ps-plugin.json index 5cb2e7c..8abcef0 100644 --- a/i18n/zh_CN/ps-plugin.json +++ b/i18n/zh_CN/ps-plugin.json @@ -11,7 +11,7 @@ "Select Lora": "选择 Lora", "use lora in your prompt": "在提示中使用 lora", "Generate": "生成", - "Generate txt2img": "生成 txt2img", + "Generate Txt2Img": "生成 Txt2Img", "Progress...": "进度...", "Toggle the visibility of the Preview Image on the canvas": "切换画布上预览图像的可见性", "Move and reSize the highlighted layer to fit into the Selection Area": "移动和调整突出显示的图层以适合选择区域", @@ -181,4 +181,4 @@ "Delete all generated images from the canvas": "在画布上删除所有生成图像", "Keep only the highlighted images": "在画布上保留选中的图像", "Generate More": "生成更多" - } \ No newline at end of file +} diff --git a/typescripts/session/generate.tsx b/typescripts/session/generate.tsx index 3c88f76..027ced3 100644 --- a/typescripts/session/generate.tsx +++ b/typescripts/session/generate.tsx @@ -44,7 +44,7 @@ export const GenerateButtons = observer(() => { display: session_store.data.can_generate ? void 0 : 'none', }} > - Generate {modeDisplayNames[sd_tab_store.data.mode]} + {Locale(`Generate ${modeDisplayNames[sd_tab_store.data.mode]}`)} {session_store.data.can_generate ? (