mirror of
https://github.com/langgenius/dify.git
synced 2026-05-04 09:28:04 +08:00
refactor(i18n): use JSON with flattened key and namespace (#30114)
Co-authored-by: yyh <yuanyouhuilyz@gmail.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
This commit is contained in:
@ -31,7 +31,7 @@ const nodeDefault: NodeDefault<WebhookTriggerNodeType> = {
|
||||
if (!payload.webhook_url || payload.webhook_url.trim() === '') {
|
||||
return {
|
||||
isValid: false,
|
||||
errorMessage: t('workflow.nodes.triggerWebhook.validation.webhookUrlRequired'),
|
||||
errorMessage: t('nodes.triggerWebhook.validation.webhookUrlRequired', { ns: 'workflow' }),
|
||||
}
|
||||
}
|
||||
|
||||
@ -46,7 +46,8 @@ const nodeDefault: NodeDefault<WebhookTriggerNodeType> = {
|
||||
if (!isValidParameterType(param.type)) {
|
||||
return {
|
||||
isValid: false,
|
||||
errorMessage: t('workflow.nodes.triggerWebhook.validation.invalidParameterType', {
|
||||
errorMessage: t('nodes.triggerWebhook.validation.invalidParameterType', {
|
||||
ns: 'workflow',
|
||||
name: param.name,
|
||||
type: param.type,
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user