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

@ -31,8 +31,8 @@ export class WorkflowEventListenerWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_EVENT_LISTENER_STANDARD_FIELD_IDS.eventName,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'The workflow event listener name',
label: msg`Name`,
description: msg`The workflow event listener name`,
})
eventName: string;
@ -40,8 +40,8 @@ export class WorkflowEventListenerWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_EVENT_LISTENER_STANDARD_FIELD_IDS.workflow,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Workflow',
description: 'WorkflowEventListener workflow',
label: msg`Workflow`,
description: msg`WorkflowEventListener workflow`,
icon: 'IconSettingsAutomation',
inverseSideTarget: () => WorkflowWorkspaceEntity,
inverseSideFieldKey: 'eventListeners',

View File

@ -62,8 +62,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.name,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'Name of the workflow run',
label: msg`Name`,
description: msg`Name of the workflow run`,
icon: 'IconSettingsAutomation',
})
name: string;
@ -71,8 +71,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.startedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Workflow run started at',
description: 'Workflow run started at',
label: msg`Workflow run started at`,
description: msg`Workflow run started at`,
icon: 'IconHistory',
})
@WorkspaceIsNullable()
@ -81,8 +81,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.endedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Workflow run ended at',
description: 'Workflow run ended at',
label: msg`Workflow run ended at`,
description: msg`Workflow run ended at`,
icon: 'IconHistory',
})
@WorkspaceIsNullable()
@ -91,8 +91,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.status,
type: FieldMetadataType.SELECT,
label: 'Workflow run status',
description: 'Workflow run status',
label: msg`Workflow run status`,
description: msg`Workflow run status`,
icon: 'IconStatusChange',
options: [
{
@ -127,9 +127,9 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.createdBy,
type: FieldMetadataType.ACTOR,
label: 'Executed by',
label: msg`Executed by`,
icon: 'IconCreativeCommonsSa',
description: 'The executor of the workflow',
description: msg`The executor of the workflow`,
defaultValue: {
source: `'${FieldActorSource.MANUAL}'`,
name: "''",
@ -140,8 +140,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.output,
type: FieldMetadataType.RAW_JSON,
label: 'Output',
description: 'Json object to provide output of the workflow run',
label: msg`Output`,
description: msg`Json object to provide output of the workflow run`,
icon: 'IconText',
})
@WorkspaceIsNullable()
@ -150,8 +150,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.position,
type: FieldMetadataType.POSITION,
label: 'Position',
description: 'Workflow run position',
label: msg`Position`,
description: msg`Workflow run position`,
icon: 'IconHierarchy2',
defaultValue: 0,
})
@ -162,8 +162,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.workflowVersion,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Workflow version',
description: 'Workflow version linked to the run.',
label: msg`Workflow version`,
description: msg`Workflow version linked to the run.`,
icon: 'IconVersions',
inverseSideTarget: () => WorkflowVersionWorkspaceEntity,
inverseSideFieldKey: 'runs',
@ -176,8 +176,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.workflow,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Workflow',
description: 'Workflow linked to the run.',
label: msg`Workflow`,
description: msg`Workflow linked to the run.`,
icon: 'IconSettingsAutomation',
inverseSideTarget: () => WorkflowWorkspaceEntity,
inverseSideFieldKey: 'runs',
@ -190,8 +190,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.favorites,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Favorites',
description: 'Favorites linked to the workflow run',
label: msg`Favorites`,
description: msg`Favorites linked to the workflow run`,
icon: 'IconHeart',
inverseSideTarget: () => FavoriteWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -202,8 +202,8 @@ export class WorkflowRunWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_RUN_STANDARD_FIELD_IDS.timelineActivities,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Timeline Activities',
description: 'Timeline activities linked to the run',
label: msg`Timeline Activities`,
description: msg`Timeline activities linked to the run`,
inverseSideTarget: () => TimelineActivityWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
})

View File

@ -72,8 +72,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.name,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'The workflow version name',
label: msg`Name`,
description: msg`The workflow version name`,
icon: 'IconSettingsAutomation',
})
name: string;
@ -81,8 +81,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.trigger,
type: FieldMetadataType.RAW_JSON,
label: 'Version trigger',
description: 'Json object to provide trigger',
label: msg`Version trigger`,
description: msg`Json object to provide trigger`,
icon: 'IconSettingsAutomation',
})
@WorkspaceIsNullable()
@ -91,8 +91,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.steps,
type: FieldMetadataType.RAW_JSON,
label: 'Version steps',
description: 'Json object to provide steps',
label: msg`Version steps`,
description: msg`Json object to provide steps`,
icon: 'IconSettingsAutomation',
})
@WorkspaceIsNullable()
@ -101,8 +101,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.status,
type: FieldMetadataType.SELECT,
label: 'Version status',
description: 'The workflow version status',
label: msg`Version status`,
description: msg`The workflow version status`,
icon: 'IconStatusChange',
options: WorkflowVersionStatusOptions,
defaultValue: "'DRAFT'",
@ -112,8 +112,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.position,
type: FieldMetadataType.POSITION,
label: 'Position',
description: 'Workflow version position',
label: msg`Position`,
description: msg`Workflow version position`,
icon: 'IconHierarchy2',
defaultValue: 0,
})
@ -124,8 +124,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.workflow,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Workflow',
description: 'WorkflowVersion workflow',
label: msg`Workflow`,
description: msg`WorkflowVersion workflow`,
icon: 'IconSettingsAutomation',
inverseSideTarget: () => WorkflowWorkspaceEntity,
inverseSideFieldKey: 'versions',
@ -139,8 +139,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.runs,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Runs',
description: 'Workflow runs linked to the version.',
label: msg`Runs`,
description: msg`Workflow runs linked to the version.`,
icon: 'IconRun',
inverseSideTarget: () => WorkflowRunWorkspaceEntity,
onDelete: RelationOnDeleteAction.SET_NULL,
@ -151,8 +151,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.favorites,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Favorites',
description: 'Favorites linked to the workflow version',
label: msg`Favorites`,
description: msg`Favorites linked to the workflow version`,
icon: 'IconHeart',
inverseSideTarget: () => FavoriteWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -163,8 +163,8 @@ export class WorkflowVersionWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_VERSION_STANDARD_FIELD_IDS.timelineActivities,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Timeline Activities',
description: 'Timeline activities linked to the version',
label: msg`Timeline Activities`,
description: msg`Timeline activities linked to the version`,
inverseSideTarget: () => TimelineActivityWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
})

View File

@ -68,8 +68,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_STANDARD_FIELD_IDS.name,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'The workflow name',
label: msg`Name`,
description: msg`The workflow name`,
icon: 'IconSettingsAutomation',
})
name: string;
@ -77,8 +77,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_STANDARD_FIELD_IDS.lastPublishedVersionId,
type: FieldMetadataType.TEXT,
label: 'Last published Version Id',
description: 'The workflow last published version id',
label: msg`Last published Version Id`,
description: msg`The workflow last published version id`,
icon: 'IconVersions',
})
@WorkspaceIsNullable()
@ -87,8 +87,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_STANDARD_FIELD_IDS.statuses,
type: FieldMetadataType.MULTI_SELECT,
label: 'Statuses',
description: 'The current statuses of the workflow versions',
label: msg`Statuses`,
description: msg`The current statuses of the workflow versions`,
icon: 'IconStatusChange',
options: WorkflowStatusOptions,
})
@ -98,8 +98,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_STANDARD_FIELD_IDS.position,
type: FieldMetadataType.POSITION,
label: 'Position',
description: 'Workflow record position',
label: msg`Position`,
description: msg`Workflow record position`,
icon: 'IconHierarchy2',
defaultValue: 0,
})
@ -110,8 +110,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_STANDARD_FIELD_IDS.versions,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Versions',
description: 'Workflow versions linked to the workflow.',
label: msg`Versions`,
description: msg`Workflow versions linked to the workflow.`,
icon: 'IconVersions',
inverseSideTarget: () => WorkflowVersionWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -121,8 +121,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_STANDARD_FIELD_IDS.runs,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Runs',
description: 'Workflow runs linked to the workflow.',
label: msg`Runs`,
description: msg`Workflow runs linked to the workflow.`,
icon: 'IconRun',
inverseSideTarget: () => WorkflowRunWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -132,8 +132,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_STANDARD_FIELD_IDS.eventListeners,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Event Listeners',
description: 'Workflow event listeners linked to the workflow.',
label: msg`Event Listeners`,
description: msg`Workflow event listeners linked to the workflow.`,
inverseSideTarget: () => WorkflowEventListenerWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
})
@ -143,8 +143,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_STANDARD_FIELD_IDS.favorites,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Favorites',
description: 'Favorites linked to the workflow',
label: msg`Favorites`,
description: msg`Favorites linked to the workflow`,
icon: 'IconHeart',
inverseSideTarget: () => FavoriteWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -155,8 +155,8 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: WORKFLOW_STANDARD_FIELD_IDS.timelineActivities,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Timeline Activities',
description: 'Timeline activities linked to the workflow',
label: msg`Timeline Activities`,
description: msg`Timeline activities linked to the workflow`,
inverseSideTarget: () => TimelineActivityWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
})
@ -166,9 +166,9 @@ export class WorkflowWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: WORKFLOW_STANDARD_FIELD_IDS.createdBy,
type: FieldMetadataType.ACTOR,
label: 'Created by',
label: msg`Created by`,
icon: 'IconCreativeCommonsSa',
description: 'The creator of the record',
description: msg`The creator of the record`,
defaultValue: {
source: `'${FieldActorSource.MANUAL}'`,
name: "''",