diff --git a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
index d716fe5880..057514fb4d 100644
--- a/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
+++ b/web/app/components/base/prompt-editor/plugins/hitl-input-block/input-field.tsx
@@ -6,36 +6,37 @@ import Button from '../../../button'
import { useTranslation } from 'react-i18next'
import { getKeyboardKeyNameBySystem } from '@/app/components/workflow/utils'
+const i18nPrefix = 'workflow.nodes.humanInput.insertInputField'
const InputField: React.FC = () => {
const { t } = useTranslation()
return (
-
Insert input field
+
{t(`${i18nPrefix}.title`)}
- Pre-populate field
+ {t(`${i18nPrefix}.prePopulateField`)}
- Add
-
- or
-
- users
+ {t(`${i18nPrefix}.add`)}
+
+ {t(`${i18nPrefix}.or`)}
+
+ {t(`${i18nPrefix}.users`)}
- will see initially, or leave empty.
+ {t(`${i18nPrefix}.prePopulateFieldPlaceholderEnd`)}
}
/>
@@ -45,9 +46,9 @@ const InputField: React.FC = () => {
className='flex'
variant='primary'
>
- Insert
+ {t(`${i18nPrefix}.insert`)}
{getKeyboardKeyNameBySystem('ctrl')}
- ↩︎
+ ↩︎
diff --git a/web/i18n/en-US/workflow.ts b/web/i18n/en-US/workflow.ts
index 78193837c0..e6fda553af 100644
--- a/web/i18n/en-US/workflow.ts
+++ b/web/i18n/en-US/workflow.ts
@@ -939,6 +939,19 @@ const translation = {
hours: 'Hours',
days: 'Days',
},
+ insertInputField: {
+ title: 'Insert Input Field',
+ saveResponseAs: 'Save Response As',
+ saveResponseAsPlaceholder: 'Name this variable for later reference',
+ prePopulateField: 'Pre-populate Field',
+ add: 'Add',
+ staticContent: 'Static Content',
+ or: 'or',
+ variable: 'variable',
+ users: 'users',
+ prePopulateFieldPlaceholderEnd: 'will see initially, or leave empty.',
+ insert: 'Insert',
+ },
},
},
tracing: {
diff --git a/web/i18n/zh-Hans/workflow.ts b/web/i18n/zh-Hans/workflow.ts
index 9da53528f5..e3bae9df07 100644
--- a/web/i18n/zh-Hans/workflow.ts
+++ b/web/i18n/zh-Hans/workflow.ts
@@ -940,6 +940,19 @@ const translation = {
hours: '小时',
days: '日',
},
+ insertInputField: {
+ title: '插入输入字段',
+ saveResponseAs: '保存响应为',
+ saveResponseAsPlaceholder: '为此变量命名以便将来引用',
+ prePopulateField: '预填充字段',
+ add: '添加',
+ staticContent: '静态内容',
+ or: '或',
+ variable: '变量',
+ users: '用户',
+ prePopulateFieldPlaceholderEnd: '将最初看到,或留空。',
+ insert: '插入',
+ },
},
},
tracing: {