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

@ -32,8 +32,8 @@ export class CalendarChannelEventAssociationWorkspaceEntity extends BaseWorkspac
standardId:
CALENDAR_CHANNEL_EVENT_ASSOCIATION_STANDARD_FIELD_IDS.eventExternalId,
type: FieldMetadataType.TEXT,
label: 'Event external ID',
description: 'Event external ID',
label: msg`Event external ID`,
description: msg`Event external ID`,
icon: 'IconCalendar',
})
eventExternalId: string;
@ -42,8 +42,8 @@ export class CalendarChannelEventAssociationWorkspaceEntity extends BaseWorkspac
standardId:
CALENDAR_CHANNEL_EVENT_ASSOCIATION_STANDARD_FIELD_IDS.recurringEventExternalId,
type: FieldMetadataType.TEXT,
label: 'Recurring Event ID',
description: 'Recurring Event ID',
label: msg`Recurring Event ID`,
description: msg`Recurring Event ID`,
icon: 'IconHistory',
})
recurringEventExternalId: string;
@ -52,8 +52,8 @@ export class CalendarChannelEventAssociationWorkspaceEntity extends BaseWorkspac
standardId:
CALENDAR_CHANNEL_EVENT_ASSOCIATION_STANDARD_FIELD_IDS.calendarChannel,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Channel ID',
description: 'Channel ID',
label: msg`Channel ID`,
description: msg`Channel ID`,
icon: 'IconCalendar',
inverseSideTarget: () => CalendarChannelWorkspaceEntity,
inverseSideFieldKey: 'calendarChannelEventAssociations',
@ -67,8 +67,8 @@ export class CalendarChannelEventAssociationWorkspaceEntity extends BaseWorkspac
standardId:
CALENDAR_CHANNEL_EVENT_ASSOCIATION_STANDARD_FIELD_IDS.calendarEvent,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Event ID',
description: 'Event ID',
label: msg`Event ID`,
description: msg`Event ID`,
icon: 'IconCalendar',
inverseSideTarget: () => CalendarEventWorkspaceEntity,
inverseSideFieldKey: 'calendarChannelEventAssociations',

View File

@ -83,8 +83,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.handle,
type: FieldMetadataType.TEXT,
label: 'Handle',
description: 'Handle',
label: msg`Handle`,
description: msg`Handle`,
icon: 'IconAt',
})
handle: string;
@ -92,8 +92,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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: [
{
@ -134,8 +134,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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: [
{
@ -183,8 +183,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.visibility,
type: FieldMetadataType.SELECT,
label: 'Visibility',
description: 'Visibility',
label: msg`Visibility`,
description: msg`Visibility`,
icon: 'IconEyeglass',
options: [
{
@ -208,8 +208,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
standardId:
CALENDAR_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,
})
@ -218,9 +218,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.contactAutoCreationPolicy,
type: FieldMetadataType.SELECT,
label: 'Contact auto creation policy',
description:
'Automatically create records for people you participated with in an event.',
label: msg`Contact auto creation policy`,
description: msg`Automatically create records for people you participated with in an event.`,
icon: 'IconUserCircle',
options: [
{
@ -256,8 +255,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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,
})
@ -266,9 +265,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.syncCursor,
type: FieldMetadataType.TEXT,
label: 'Sync Cursor',
description:
'Sync Cursor. Used for syncing events from the calendar provider',
label: msg`Sync Cursor`,
description: msg`Sync Cursor. Used for syncing events from the calendar provider`,
icon: 'IconReload',
})
syncCursor: string;
@ -276,8 +274,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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()
@ -286,8 +284,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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()
@ -296,8 +294,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_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,
})
@ -306,8 +304,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: CALENDAR_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: 'calendarChannels',
@ -321,8 +319,8 @@ export class CalendarChannelWorkspaceEntity extends BaseWorkspaceEntity {
standardId:
CALENDAR_CHANNEL_STANDARD_FIELD_IDS.calendarChannelEventAssociations,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Calendar Channel Event Associations',
description: 'Calendar Channel Event Associations',
label: msg`Calendar Channel Event Associations`,
description: msg`Calendar Channel Event Associations`,
icon: 'IconCalendar',
inverseSideTarget: () => CalendarChannelEventAssociationWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,

View File

@ -42,8 +42,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceField({
standardId: CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.handle,
type: FieldMetadataType.TEXT,
label: 'Handle',
description: 'Handle',
label: msg`Handle`,
description: msg`Handle`,
icon: 'IconMail',
})
handle: string;
@ -51,8 +51,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceField({
standardId: CALENDAR_EVENT_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;
@ -60,8 +60,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceField({
standardId: CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.isOrganizer,
type: FieldMetadataType.BOOLEAN,
label: 'Is Organizer',
description: 'Is Organizer',
label: msg`Is Organizer`,
description: msg`Is Organizer`,
icon: 'IconUser',
defaultValue: false,
})
@ -70,8 +70,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceField({
standardId: CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.responseStatus,
type: FieldMetadataType.SELECT,
label: 'Response Status',
description: 'Response Status',
label: msg`Response Status`,
description: msg`Response Status`,
icon: 'IconUser',
options: [
{
@ -106,8 +106,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceRelation({
standardId: CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.calendarEvent,
type: RelationMetadataType.MANY_TO_ONE,
label: 'Event ID',
description: 'Event ID',
label: msg`Event ID`,
description: msg`Event ID`,
icon: 'IconCalendar',
inverseSideTarget: () => CalendarEventWorkspaceEntity,
inverseSideFieldKey: 'calendarEventParticipants',
@ -120,8 +120,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceRelation({
standardId: CALENDAR_EVENT_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: 'calendarEventParticipants',
@ -135,8 +135,8 @@ export class CalendarEventParticipantWorkspaceEntity extends BaseWorkspaceEntity
@WorkspaceRelation({
standardId: CALENDAR_EVENT_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: 'IconUser',
inverseSideTarget: () => WorkspaceMemberWorkspaceEntity,
inverseSideFieldKey: 'calendarEventParticipants',

View File

@ -36,8 +36,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.title,
type: FieldMetadataType.TEXT,
label: 'Title',
description: 'Title',
label: msg`Title`,
description: msg`Title`,
icon: 'IconH1',
})
title: string;
@ -45,8 +45,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.isCanceled,
type: FieldMetadataType.BOOLEAN,
label: 'Is canceled',
description: 'Is canceled',
label: msg`Is canceled`,
description: msg`Is canceled`,
icon: 'IconCalendarCancel',
defaultValue: false,
})
@ -55,8 +55,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.isFullDay,
type: FieldMetadataType.BOOLEAN,
label: 'Is Full Day',
description: 'Is Full Day',
label: msg`Is Full Day`,
description: msg`Is Full Day`,
icon: 'Icon24Hours',
defaultValue: false,
})
@ -65,8 +65,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.startsAt,
type: FieldMetadataType.DATE_TIME,
label: 'Start Date',
description: 'Start Date',
label: msg`Start Date`,
description: msg`Start Date`,
icon: 'IconCalendarClock',
})
@WorkspaceIsNullable()
@ -75,8 +75,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.endsAt,
type: FieldMetadataType.DATE_TIME,
label: 'End Date',
description: 'End Date',
label: msg`End Date`,
description: msg`End Date`,
icon: 'IconCalendarClock',
})
@WorkspaceIsNullable()
@ -85,8 +85,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.externalCreatedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Creation DateTime',
description: 'Creation DateTime',
label: msg`Creation DateTime`,
description: msg`Creation DateTime`,
icon: 'IconCalendarPlus',
})
@WorkspaceIsNullable()
@ -95,8 +95,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.externalUpdatedAt,
type: FieldMetadataType.DATE_TIME,
label: 'Update DateTime',
description: 'Update DateTime',
label: msg`Update DateTime`,
description: msg`Update DateTime`,
icon: 'IconCalendarCog',
})
@WorkspaceIsNullable()
@ -105,8 +105,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.description,
type: FieldMetadataType.TEXT,
label: 'Description',
description: 'Description',
label: msg`Description`,
description: msg`Description`,
icon: 'IconFileDescription',
})
description: string;
@ -114,8 +114,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.location,
type: FieldMetadataType.TEXT,
label: 'Location',
description: 'Location',
label: msg`Location`,
description: msg`Location`,
icon: 'IconMapPin',
})
location: string;
@ -123,8 +123,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.iCalUID,
type: FieldMetadataType.TEXT,
label: 'iCal UID',
description: 'iCal UID',
label: msg`iCal UID`,
description: msg`iCal UID`,
icon: 'IconKey',
})
iCalUID: string;
@ -132,8 +132,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.conferenceSolution,
type: FieldMetadataType.TEXT,
label: 'Conference Solution',
description: 'Conference Solution',
label: msg`Conference Solution`,
description: msg`Conference Solution`,
icon: 'IconScreenShare',
})
conferenceSolution: string;
@ -141,8 +141,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceField({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.conferenceLink,
type: FieldMetadataType.LINKS,
label: 'Meet Link',
description: 'Meet Link',
label: msg`Meet Link`,
description: msg`Meet Link`,
icon: 'IconLink',
})
@WorkspaceIsNullable()
@ -152,8 +152,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
standardId:
CALENDAR_EVENT_STANDARD_FIELD_IDS.calendarChannelEventAssociations,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Calendar Channel Event Associations',
description: 'Calendar Channel Event Associations',
label: msg`Calendar Channel Event Associations`,
description: msg`Calendar Channel Event Associations`,
icon: 'IconCalendar',
inverseSideTarget: () => CalendarChannelEventAssociationWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,
@ -165,8 +165,8 @@ export class CalendarEventWorkspaceEntity extends BaseWorkspaceEntity {
@WorkspaceRelation({
standardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.calendarEventParticipants,
type: RelationMetadataType.ONE_TO_MANY,
label: 'Event Participants',
description: 'Event Participants',
label: msg`Event Participants`,
description: msg`Event Participants`,
icon: 'IconUserCircle',
inverseSideTarget: () => CalendarEventParticipantWorkspaceEntity,
onDelete: RelationOnDeleteAction.CASCADE,