Add field description+label translations (#9899)

Add translations for field descriptions
This commit is contained in:
Félix Malfait
2025-01-28 23:20:28 +01:00
committed by GitHub
parent b1219ff107
commit f74bb5a60b
47 changed files with 4210 additions and 720 deletions

View File

@ -27,8 +27,8 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WEBHOOK_STANDARD_FIELD_IDS.targetUrl,
type: FieldMetadataType.TEXT,
label: 'Target Url',
description: 'Webhook target url',
label: msg`Target Url`,
description: msg`Webhook target url`,
icon: 'IconLink',
})
targetUrl: string;
@ -36,8 +36,8 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WEBHOOK_STANDARD_FIELD_IDS.operation,
type: FieldMetadataType.TEXT,
label: 'Operation',
description: 'Webhook operation',
label: msg`Operation`,
description: msg`Webhook operation`,
icon: 'IconCheckbox',
})
@WorkspaceIsDeprecated()
@ -46,8 +46,8 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WEBHOOK_STANDARD_FIELD_IDS.operations,
type: FieldMetadataType.ARRAY,
label: 'Operations',
description: 'Webhook operations',
label: msg`Operations`,
description: msg`Webhook operations`,
icon: 'IconCheckbox',
defaultValue: ['*.*'],
})
@ -56,7 +56,7 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WEBHOOK_STANDARD_FIELD_IDS.description,
type: FieldMetadataType.TEXT,
label: 'Description',
label: msg`Description`,
description: undefined,
icon: 'IconInfo',
})
@ -66,9 +66,8 @@ export class WebhookWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WEBHOOK_STANDARD_FIELD_IDS.secret,
type: FieldMetadataType.TEXT,
label: 'Secret',
description:
'Optional secret used to compute the HMAC signature for webhook payloads. This secret is shared between Twenty and the webhook consumer to authenticate webhook requests.',
label: msg`Secret`,
description: msg`Optional secret used to compute the HMAC signature for webhook payloads. This secret is shared between Twenty and the webhook consumer to authenticate webhook requests.`,
icon: 'IconLock',
})
secret: string;