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

@ -60,8 +60,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.name,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'The opportunity name',
label: msg`Name`,
description: msg`The opportunity name`,
icon: 'IconTargetArrow',
})
name: string;
@ -69,8 +69,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.amount,
type: FieldMetadataType.CURRENCY,
label: 'Amount',
description: 'Opportunity amount',
label: msg`Amount`,
description: msg`Opportunity amount`,
icon: 'IconCurrencyDollar',
})
@WorkspaceIsNullable()
@ -79,8 +79,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.closeDate,
type: FieldMetadataType.DATE_TIME,
label: 'Close date',
description: 'Opportunity close date',
label: msg`Close date`,
description: msg`Opportunity close date`,
icon: 'IconCalendarEvent',
})
@WorkspaceIsNullable()
@ -89,8 +89,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.stage,
type: FieldMetadataType.SELECT,
label: 'Stage',
description: 'Opportunity stage',
label: msg`Stage`,
description: msg`Opportunity stage`,
icon: 'IconProgressCheck',
options: [
{ value: 'NEW', label: 'New', position: 0, color: 'red' },
@ -112,8 +112,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.position,
type: FieldMetadataType.POSITION,
label: 'Position',
description: 'Opportunity record position',
label: msg`Position`,
description: msg`Opportunity record position`,
icon: 'IconHierarchy2',
defaultValue: 0,
})
@ -123,9 +123,9 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_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: "''",
@ -136,8 +136,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.pointOfContact,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Point of Contact',
description: 'Opportunity point of contact',
label: msg`Point of Contact`,
description: msg`Opportunity point of contact`,
icon: 'IconUser',
inverseSideTarget: () => PersonWorkspaceEntity,
inverseSideFieldKey: 'pointOfContactForOpportunities',
@ -152,8 +152,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.company,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Company',
description: 'Opportunity company',
label: msg`Company`,
description: msg`Opportunity company`,
icon: 'IconBuildingSkyscraper',
inverseSideTarget: () => CompanyWorkspaceEntity,
inverseSideFieldKey: 'opportunities',
@ -168,8 +168,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.favorites,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Favorites',
description: 'Favorites linked to the opportunity',
label: msg`Favorites`,
description: msg`Favorites linked to the opportunity`,
icon: 'IconHeart',
inverseSideTarget: () => FavoriteWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -181,8 +181,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.taskTargets,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Tasks',
description: 'Tasks tied to the opportunity',
label: msg`Tasks`,
description: msg`Tasks tied to the opportunity`,
icon: 'IconCheckbox',
inverseSideTarget: () => TaskTargetWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -192,8 +192,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.noteTargets,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Notes',
description: 'Notes tied to the opportunity',
label: msg`Notes`,
description: msg`Notes tied to the opportunity`,
icon: 'IconNotes',
inverseSideTarget: () => NoteTargetWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -203,8 +203,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.attachments,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Attachments',
description: 'Attachments linked to the opportunity',
label: msg`Attachments`,
description: msg`Attachments linked to the opportunity`,
icon: 'IconFileImport',
inverseSideTarget: () => AttachmentWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -215,8 +215,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.timelineActivities,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Timeline Activities',
description: 'Timeline Activities linked to the opportunity.',
label: msg`Timeline Activities`,
description: msg`Timeline Activities linked to the opportunity.`,
icon: 'IconTimelineEvent',
inverseSideTarget: () => TimelineActivityWorkspaceEntity,
onDelete: RelationOnDeleteAction.SET_NULL,
@ -227,8 +227,8 @@ export class OpportunityWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: OPPORTUNITY_STANDARD_FIELD_IDS.probabilityDeprecated,
type: FieldMetadataType.TEXT,
label: 'Probability',
description: 'Opportunity probability',
label: msg`Probability`,
description: msg`Opportunity probability`,
icon: 'IconProgressCheck',
defaultValue: "'0'",
})