From f862e603ac45d69410e4e6f3e9c1104a3d47e315 Mon Sep 17 00:00:00 2001 From: unknown <348063288@qq.com> Date: Fri, 7 Jul 2023 00:44:12 +0800 Subject: [PATCH] add some localization --- i18n/zh_CN/ps-plugin.json | 5 ++++- typescripts/after_detailer/after_detailer.tsx | 4 ++-- typescripts/controlnet/main.tsx | 3 ++- typescripts/locale/locale.ts | 2 +- typescripts/session/progress.ts | 3 ++- typescripts/session/session.ts | 3 ++- typescripts/settings/settings.tsx | 3 ++- typescripts/viewer/preview.tsx | 7 ++++--- typescripts/viewer/viewer.tsx | 18 +++++++++--------- 9 files changed, 28 insertions(+), 20 deletions(-) diff --git a/i18n/zh_CN/ps-plugin.json b/i18n/zh_CN/ps-plugin.json index 3a1cddc..596ccd8 100644 --- a/i18n/zh_CN/ps-plugin.json +++ b/i18n/zh_CN/ps-plugin.json @@ -176,5 +176,8 @@ "ControlNet Unit": "ControlNet #", "Select Filter": "选择过滤器", "Select Module": "选择预处理器", - "Select Model": "选择模型" + "Select Model": "选择模型", + "Keep all generated images on the canvas": "在画布上保留所有生成图像", + "Delete all generated images from the canvas": "在画布上删除所有生成图像", + "Keep only the highlighted images": "在画布上保留选中的图像" } \ No newline at end of file diff --git a/typescripts/after_detailer/after_detailer.tsx b/typescripts/after_detailer/after_detailer.tsx index 8014dd9..45eac89 100644 --- a/typescripts/after_detailer/after_detailer.tsx +++ b/typescripts/after_detailer/after_detailer.tsx @@ -286,7 +286,7 @@ function Collapsible({ setIsOpen(!isOpen) } - return useObserver(()=> ( + return /*useObserver(()=>*/( (