From 501c3bcc9409f4f1f58b78fca36a7ad10b3d8f0c Mon Sep 17 00:00:00 2001 From: twwu Date: Tue, 30 Dec 2025 10:18:31 +0800 Subject: [PATCH] chore: add i18n namespace to various components in the workflow for consistency --- .../base/chat/chat/answer/human-input-content/index.tsx | 3 ++- .../plugins/hitl-input-block/pre-populate.tsx | 1 + .../components/delivery-method/email-configure-modal.tsx | 1 + .../components/delivery-method/method-selector.tsx | 1 + .../components/delivery-method/test-email-sender.tsx | 7 +++++++ .../workflow/nodes/human-input/components/form-content.tsx | 3 ++- 6 files changed, 14 insertions(+), 2 deletions(-) diff --git a/web/app/components/base/chat/chat/answer/human-input-content/index.tsx b/web/app/components/base/chat/chat/answer/human-input-content/index.tsx index 4da25e712b..87f69db468 100644 --- a/web/app/components/base/chat/chat/answer/human-input-content/index.tsx +++ b/web/app/components/base/chat/chat/answer/human-input-content/index.tsx @@ -32,7 +32,8 @@ const HumanInputContent = ({ {showEmailTip && isEmailDebugMode && (
}} values={{ email }} /> diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx index 8d966b645a..25df13633d 100644 --- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx +++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/pre-populate.tsx @@ -37,6 +37,7 @@ const Placeholder = ({
onTypeClick(false)}>{t(`${i18nPrefix}.staticContent`, { ns: 'workflow' })}, variable: ( diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx index bb5dbc1d26..a11c6f1786 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/email-configure-modal.tsx @@ -141,6 +141,7 @@ const EmailConfigureModal = ({
{userProfile.email} }} values={{ email: userProfile.email }} /> diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx index beb627e38f..680cd50937 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/method-selector.tsx @@ -170,6 +170,7 @@ const MethodSelector: FC = ({
{t(`${i18nPrefix}.deliveryMethod.contactTip1`, { ns: 'workflow' })}
support@dify.ai }} />
diff --git a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx index 64e3c287cc..8c1e6eee95 100644 --- a/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx +++ b/web/app/components/workflow/nodes/human-input/components/delivery-method/test-email-sender.tsx @@ -162,6 +162,7 @@ const EmailSenderModal = ({
}} values={{ email: userProfile.email }} /> @@ -171,6 +172,7 @@ const EmailSenderModal = ({
}} values={{ team: currentWorkspace.name.replace(/'/g, '’') }} /> @@ -183,6 +185,7 @@ const EmailSenderModal = ({
}} values={{ team: currentWorkspace.name.replace(/'/g, '’') }} /> @@ -232,6 +235,7 @@ const EmailSenderModal = ({
}} values={{ email: userProfile.email }} /> @@ -242,6 +246,7 @@ const EmailSenderModal = ({
}} values={{ team: currentWorkspace.name.replace(/'/g, '’') }} /> @@ -254,6 +259,7 @@ const EmailSenderModal = ({
}} values={{ team: currentWorkspace.name.replace(/'/g, '’') }} /> @@ -276,6 +282,7 @@ const EmailSenderModal = ({
}} />
diff --git a/web/app/components/workflow/nodes/human-input/components/form-content.tsx b/web/app/components/workflow/nodes/human-input/components/form-content.tsx index b8c4b77442..1e0517b003 100644 --- a/web/app/components/workflow/nodes/human-input/components/form-content.tsx +++ b/web/app/components/workflow/nodes/human-input/components/form-content.tsx @@ -144,7 +144,8 @@ const FormContent: FC = ({ {isFocus && (
/,