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

@ -39,8 +39,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.name,
type: FieldMetadataType.TEXT,
label: 'Name',
description: 'Attachment name',
label: msg`Name`,
description: msg`Attachment name`,
icon: 'IconFileUpload',
})
name: string;
@ -48,8 +48,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.fullPath,
type: FieldMetadataType.TEXT,
label: 'Full path',
description: 'Attachment full path',
label: msg`Full path`,
description: msg`Attachment full path`,
icon: 'IconLink',
})
fullPath: string;
@ -57,8 +57,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.type,
type: FieldMetadataType.TEXT,
label: 'Type',
description: 'Attachment type',
label: msg`Type`,
description: msg`Attachment type`,
icon: 'IconList',
})
type: string;
@ -66,8 +66,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.author,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Author',
description: 'Attachment author',
label: msg`Author`,
description: msg`Attachment author`,
icon: 'IconCircleUser',
inverseSideTarget: () => WorkspaceMemberWorkspaceEntity,
inverseSideFieldKey: 'authoredAttachments',
@ -80,8 +80,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.task,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Task',
description: 'Attachment task',
label: msg`Task`,
description: msg`Attachment task`,
icon: 'IconNotes',
inverseSideTarget: () => TaskWorkspaceEntity,
inverseSideFieldKey: 'attachments',
@ -95,8 +95,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.note,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Note',
description: 'Attachment note',
label: msg`Note`,
description: msg`Attachment note`,
icon: 'IconNotes',
inverseSideTarget: () => NoteWorkspaceEntity,
inverseSideFieldKey: 'attachments',
@ -110,8 +110,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.person,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Person',
description: 'Attachment person',
label: msg`Person`,
description: msg`Attachment person`,
icon: 'IconUser',
inverseSideTarget: () => PersonWorkspaceEntity,
inverseSideFieldKey: 'attachments',
@ -125,8 +125,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.company,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Company',
description: 'Attachment company',
label: msg`Company`,
description: msg`Attachment company`,
icon: 'IconBuildingSkyscraper',
inverseSideTarget: () => CompanyWorkspaceEntity,
inverseSideFieldKey: 'attachments',
@ -140,8 +140,8 @@ export class AttachmentWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: ATTACHMENT_STANDARD_FIELD_IDS.opportunity,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Opportunity',
description: 'Attachment opportunity',
label: msg`Opportunity`,
description: msg`Attachment opportunity`,
icon: 'IconBuildingSkyscraper',
inverseSideTarget: () => OpportunityWorkspaceEntity,
inverseSideFieldKey: 'attachments',