From 9c72cba8f51eec49bbbd9a0bf28751fa535c2fda Mon Sep 17 00:00:00 2001 From: Sheldon Guo Date: Thu, 20 Mar 2025 10:50:21 +0800 Subject: [PATCH] feat(mailer): add description for secure setting and update translations (#6510) --- .../plugin-workflow-mailer/src/client/MailerInstruction.tsx | 3 ++- .../@nocobase/plugin-workflow-mailer/src/locale/en-US.json | 3 ++- .../@nocobase/plugin-workflow-mailer/src/locale/zh-CN.json | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx b/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx index 08c148521d..4b02a7d641 100644 --- a/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx +++ b/packages/plugins/@nocobase/plugin-workflow-mailer/src/client/MailerInstruction.tsx @@ -7,9 +7,9 @@ * For more information, please refer to: https://www.nocobase.com/agreement. */ -import React from 'react'; import { MailOutlined } from '@ant-design/icons'; import { ArrayItems } from '@formily/antd-v5'; +import React from 'react'; import { SchemaComponentContext, css } from '@nocobase/client'; import { @@ -112,6 +112,7 @@ export default class extends Instruction { secure: { type: 'boolean', title: `{{t("Secure", { ns: "${NAMESPACE}" })}}`, + description: `{{t("In most cases, if using port 465, set it to true; otherwise, set it to false.", { ns: "${NAMESPACE}" })}}`, 'x-decorator': 'FormItem', 'x-component': 'WorkflowVariableInput', 'x-component-props': { diff --git a/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/en-US.json b/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/en-US.json index acd2ea3219..297e52cb70 100644 --- a/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/en-US.json +++ b/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/en-US.json @@ -15,5 +15,6 @@ "Content": "Content", "Content type": "Content type", "Plain text": "Plain text", - "Ignore failed sending and continue workflow": "Ignore failed sending and continue workflow" + "Ignore failed sending and continue workflow": "Ignore failed sending and continue workflow", + "In most cases, if using port 465, set it to true; otherwise, set it to false.": "In most cases, if using port 465, set it to true; otherwise, set it to false." } diff --git a/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/zh-CN.json b/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/zh-CN.json index b5b32d5f1b..ed678386b8 100644 --- a/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/zh-CN.json +++ b/packages/plugins/@nocobase/plugin-workflow-mailer/src/locale/zh-CN.json @@ -15,5 +15,6 @@ "Content": "内容", "Content type": "内容格式", "Plain text": "纯文本", - "Ignore failed sending and continue workflow": "忽略失败的发送并继续工作流" + "Ignore failed sending and continue workflow": "忽略失败的发送并继续工作流", + "In most cases, if using port 465, set it to true; otherwise, set it to false.": "通常情况下,如果使用端口 465 ,请设置为 true ;否则,请设置为 false 。" }