webhook i18n

This commit is contained in:
hjlarry 2025-10-16 14:52:15 +08:00
parent 52d5f219e1
commit 56abca1f41
5 changed files with 17 additions and 9 deletions

View File

@ -23,14 +23,14 @@ const HeaderTable: FC<HeaderTableProps> = ({
const columns: ColumnConfig[] = [
{
key: 'name',
title: 'Variable Name',
title: t('workflow.nodes.triggerWebhook.varName'),
type: 'input',
width: 'flex-1',
placeholder: 'Variable Name',
placeholder: t('workflow.nodes.triggerWebhook.varNamePlaceholder'),
},
{
key: 'required',
title: 'Required',
title: t('workflow.nodes.triggerWebhook.required'),
type: 'switch',
width: 'w-[88px]',
},

View File

@ -37,22 +37,22 @@ const ParameterTable: FC<ParameterTableProps> = ({
const columns: ColumnConfig[] = [
{
key: 'key',
title: 'Variable Name',
title: t('workflow.nodes.triggerWebhook.varName'),
type: 'input',
width: 'flex-1',
placeholder: 'Variable Name',
placeholder: t('workflow.nodes.triggerWebhook.varNamePlaceholder'),
},
{
key: 'type',
title: 'Type',
title: t('workflow.nodes.triggerWebhook.varType'),
type: 'select',
width: 'w-[120px]',
placeholder: 'Type',
placeholder: t('workflow.nodes.triggerWebhook.varType'),
options: typeOptions,
},
{
key: 'required',
title: 'Required',
title: t('workflow.nodes.triggerWebhook.required'),
type: 'switch',
width: 'w-[88px]',
},

View File

@ -1104,7 +1104,9 @@ const translation = {
headerParameters: 'Header Parameters',
requestBodyParameters: 'Request Body Parameters',
parameterName: 'Variable name',
headerName: 'Variable name',
varName: 'Variable name',
varType: 'Type',
varNamePlaceholder: 'Enter variable name...',
required: 'Required',
addParameter: 'Add',
addHeader: 'Add',

View File

@ -1056,6 +1056,9 @@ const translation = {
headerParameters: 'ヘッダーパラメータ',
requestBodyParameters: 'リクエストボディパラメータ',
parameterName: '変数名',
varName: '変数名',
varType: 'タイプ',
varNamePlaceholder: '変数名を入力...',
headerName: '変数名',
required: '必須',
addParameter: '追加',

View File

@ -1059,6 +1059,9 @@ const translation = {
headerParameters: 'Header 参数',
requestBodyParameters: '请求体参数',
parameterName: '变量名',
varName: '变量名',
varType: '类型',
varNamePlaceholder: '输入变量名...',
headerName: '变量名',
required: '必填',
addParameter: '添加',