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

@ -42,8 +42,8 @@ export class MessageChannelMessageAssociationWorkspaceEntity extends BaseWorkspa
standardId:
MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_STANDARD_FIELD_IDS.messageExternalId,
type: FieldMetadataType.TEXT,
label: 'Message External Id',
description: 'Message id from the messaging provider',
label: msg`Message External Id`,
description: msg`Message id from the messaging provider`,
icon: 'IconHash',
})
@WorkspaceIsNullable()
@ -53,8 +53,8 @@ export class MessageChannelMessageAssociationWorkspaceEntity extends BaseWorkspa
standardId:
MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_STANDARD_FIELD_IDS.messageThreadExternalId,
type: FieldMetadataType.TEXT,
label: 'Thread External Id',
description: 'Thread id from the messaging provider',
label: msg`Thread External Id`,
description: msg`Thread id from the messaging provider`,
icon: 'IconHash',
})
@WorkspaceIsNullable()
@ -63,8 +63,8 @@ export class MessageChannelMessageAssociationWorkspaceEntity extends BaseWorkspa
@WorkspaceField({
standardId: MESSAGE_STANDARD_FIELD_IDS.direction,
type: FieldMetadataType.SELECT,
label: 'Direction',
description: 'Message Direction',
label: msg`Direction`,
description: msg`Message Direction`,
icon: 'IconDirection',
options: [
{
@ -88,8 +88,8 @@ export class MessageChannelMessageAssociationWorkspaceEntity extends BaseWorkspa
standardId:
MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_STANDARD_FIELD_IDS.messageChannel,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Message Channel Id',
description: 'Message Channel Id',
label: msg`Message Channel Id`,
description: msg`Message Channel Id`,
icon: 'IconHash',
inverseSideTarget: () => MessageChannelWorkspaceEntity,
inverseSideFieldKey: 'messageChannelMessageAssociations',
@ -103,8 +103,8 @@ export class MessageChannelMessageAssociationWorkspaceEntity extends BaseWorkspa
@WorkspaceRelation({
standardId: MESSAGE_CHANNEL_MESSAGE_ASSOCIATION_STANDARD_FIELD_IDS.message,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Message Id',
description: 'Message Id',
label: msg`Message Id`,
description: msg`Message Id`,
icon: 'IconHash',
inverseSideTarget: () => MessageWorkspaceEntity,
inverseSideFieldKey: 'messageChannelMessageAssociations',

View File

@ -92,8 +92,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.visibility,
type: FieldMetadataType.SELECT,
label: 'Visibility',
description: 'Visibility',
label: msg`Visibility`,
description: msg`Visibility`,
icon: 'IconEyeglass',
options: [
{
@ -122,8 +122,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.handle,
type: FieldMetadataType.TEXT,
label: 'Handle',
description: 'Handle',
label: msg`Handle`,
description: msg`Handle`,
icon: 'IconAt',
})
handle: string;
@ -131,8 +131,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.type,
type: FieldMetadataType.SELECT,
label: 'Type',
description: 'Channel Type',
label: msg`Type`,
description: msg`Channel Type`,
icon: 'IconMessage',
options: [
{
@ -156,8 +156,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.isContactAutoCreationEnabled,
type: FieldMetadataType.BOOLEAN,
label: 'Is Contact Auto Creation Enabled',
description: 'Is Contact Auto Creation Enabled',
label: msg`Is Contact Auto Creation Enabled`,
description: msg`Is Contact Auto Creation Enabled`,
icon: 'IconUserCircle',
defaultValue: true,
})
@ -166,9 +166,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.contactAutoCreationPolicy,
type: FieldMetadataType.SELECT,
label: 'Contact auto creation policy',
description:
'Automatically create People records when receiving or sending emails',
label: msg`Contact auto creation policy`,
description: msg`Automatically create People records when receiving or sending emails`,
icon: 'IconUserCircle',
options: [
{
@ -197,8 +196,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.excludeNonProfessionalEmails,
type: FieldMetadataType.BOOLEAN,
label: 'Exclude non professional emails',
description: 'Exclude non professional emails',
label: msg`Exclude non professional emails`,
description: msg`Exclude non professional emails`,
icon: 'IconBriefcase',
defaultValue: true,
})
@ -207,8 +206,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.excludeGroupEmails,
type: FieldMetadataType.BOOLEAN,
label: 'Exclude group emails',
description: 'Exclude group emails',
label: msg`Exclude group emails`,
description: msg`Exclude group emails`,
icon: 'IconUsersGroup',
defaultValue: true,
})
@ -217,8 +216,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.isSyncEnabled,
type: FieldMetadataType.BOOLEAN,
label: 'Is Sync Enabled',
description: 'Is Sync Enabled',
label: msg`Is Sync Enabled`,
description: msg`Is Sync Enabled`,
icon: 'IconRefresh',
defaultValue: true,
})
@ -227,8 +226,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.syncCursor,
type: FieldMetadataType.TEXT,
label: 'Last sync cursor',
description: 'Last sync cursor',
label: msg`Last sync cursor`,
description: msg`Last sync cursor`,
icon: 'IconHistory',
})
syncCursor: string;
@ -236,8 +235,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.syncedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Last sync date',
description: 'Last sync date',
label: msg`Last sync date`,
description: msg`Last sync date`,
icon: 'IconHistory',
})
@WorkspaceIsNullable()
@ -246,8 +245,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.syncStatus,
type: FieldMetadataType.SELECT,
label: 'Sync status',
description: 'Sync status',
label: msg`Sync status`,
description: msg`Sync status`,
icon: 'IconStatusChange',
options: [
{
@ -288,8 +287,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.syncStage,
type: FieldMetadataType.SELECT,
label: 'Sync stage',
description: 'Sync stage',
label: msg`Sync stage`,
description: msg`Sync stage`,
icon: 'IconStatusChange',
options: [
{
@ -336,8 +335,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.syncStageStartedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Sync stage started at',
description: 'Sync stage started at',
label: msg`Sync stage started at`,
description: msg`Sync stage started at`,
icon: 'IconHistory',
})
@WorkspaceIsNullable()
@ -346,8 +345,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.throttleFailureCount,
type: FieldMetadataType.NUMBER,
label: 'Throttle Failure Count',
description: 'Throttle Failure Count',
label: msg`Throttle Failure Count`,
description: msg`Throttle Failure Count`,
icon: 'IconX',
defaultValue: 0,
})
@ -356,8 +355,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_CHANNEL_STANDARD_FIELD_IDS.connectedAccount,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Connected Account',
description: 'Connected Account',
label: msg`Connected Account`,
description: msg`Connected Account`,
icon: 'IconUserCircle',
inverseSideTarget: () => ConnectedAccountWorkspaceEntity,
inverseSideFieldKey: 'messageChannels',
@ -371,8 +370,8 @@ export class MessageChannelWorkspaceEntity extends BaseWorkspaceEntity {
standardId:
MESSAGE_CHANNEL_STANDARD_FIELD_IDS.messageChannelMessageAssociations,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Message Channel Association',
description: 'Messages from the channel.',
label: msg`Message Channel Association`,
description: msg`Messages from the channel.`,
icon: 'IconMessage',
inverseSideTarget: () => MessageChannelMessageAssociationWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,

View File

@ -34,8 +34,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.role,
type: FieldMetadataType.SELECT,
label: 'Role',
description: 'Role',
label: msg`Role`,
description: msg`Role`,
icon: 'IconAt',
options: [
{ value: 'from', label: 'From', position: 0, color: 'green' },
@ -50,8 +50,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.handle,
type: FieldMetadataType.TEXT,
label: 'Handle',
description: 'Handle',
label: msg`Handle`,
description: msg`Handle`,
icon: 'IconAt',
})
handle: string;
@ -59,8 +59,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.displayName,
type: FieldMetadataType.TEXT,
label: 'Display Name',
description: 'Display Name',
label: msg`Display Name`,
description: msg`Display Name`,
icon: 'IconUser',
})
displayName: string;
@ -68,8 +68,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.message,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Message',
description: 'Message',
label: msg`Message`,
description: msg`Message`,
icon: 'IconMessage',
inverseSideTarget: () => MessageWorkspaceEntity,
inverseSideFieldKey: 'messageParticipants',
@ -82,8 +82,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.person,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Person',
description: 'Person',
label: msg`Person`,
description: msg`Person`,
icon: 'IconUser',
inverseSideTarget: () => PersonWorkspaceEntity,
inverseSideFieldKey: 'messageParticipants',
@ -97,8 +97,8 @@ export class MessageParticipantWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.workspaceMember,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Workspace Member',
description: 'Workspace member',
label: msg`Workspace Member`,
description: msg`Workspace member`,
icon: 'IconCircleUser',
inverseSideTarget: () => WorkspaceMemberWorkspaceEntity,
inverseSideFieldKey: 'messageParticipants',

View File

@ -31,8 +31,8 @@ export class MessageThreadWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_THREAD_STANDARD_FIELD_IDS.messages,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Messages',
description: 'Messages from the thread.',
label: msg`Messages`,
description: msg`Messages from the thread.`,
icon: 'IconMessage',
inverseSideTarget: () => MessageWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,

View File

@ -37,8 +37,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_STANDARD_FIELD_IDS.headerMessageId,
type: FieldMetadataType.TEXT,
label: 'Header message Id',
description: 'Message id from the message header',
label: msg`Header message Id`,
description: msg`Message id from the message header`,
icon: 'IconHash',
})
headerMessageId: string;
@ -46,8 +46,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_STANDARD_FIELD_IDS.subject,
type: FieldMetadataType.TEXT,
label: 'Subject',
description: 'Subject',
label: msg`Subject`,
description: msg`Subject`,
icon: 'IconMessage',
})
subject: string;
@ -55,8 +55,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_STANDARD_FIELD_IDS.text,
type: FieldMetadataType.TEXT,
label: 'Text',
description: 'Text',
label: msg`Text`,
description: msg`Text`,
icon: 'IconMessage',
})
text: string;
@ -64,8 +64,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: MESSAGE_STANDARD_FIELD_IDS.receivedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Received At',
description: 'The date the message was received',
label: msg`Received At`,
description: msg`The date the message was received`,
icon: 'IconCalendar',
})
@WorkspaceIsNullable()
@ -74,8 +74,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_STANDARD_FIELD_IDS.messageThread,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Message Thread Id',
description: 'Message Thread Id',
label: msg`Message Thread Id`,
description: msg`Message Thread Id`,
icon: 'IconHash',
inverseSideTarget: () => MessageThreadWorkspaceEntity,
inverseSideFieldKey: 'messages',
@ -90,8 +90,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_STANDARD_FIELD_IDS.messageParticipants,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Message Participants',
description: 'Message Participants',
label: msg`Message Participants`,
description: msg`Message Participants`,
icon: 'IconUserCircle',
inverseSideTarget: () => MessageParticipantWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -102,8 +102,8 @@ export class MessageWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: MESSAGE_STANDARD_FIELD_IDS.messageChannelMessageAssociations,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Message Channel Association',
description: 'Messages from the channel.',
label: msg`Message Channel Association`,
description: msg`Messages from the channel.`,
icon: 'IconMessage',
inverseSideTarget: () => MessageChannelMessageAssociationWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,