Translate label and descriptions for objects (#9876)
Begin server-side translations
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
@ -19,9 +20,9 @@ import { CalendarEventWorkspaceEntity } from 'src/modules/calendar/common/standa
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.calendarChannelEventAssociation,
|
||||
namePlural: 'calendarChannelEventAssociations',
|
||||
labelSingular: 'Calendar Channel Event Association',
|
||||
labelPlural: 'Calendar Channel Event Associations',
|
||||
description: 'Calendar Channel Event Associations',
|
||||
labelSingular: msg`Calendar Channel Event Association`,
|
||||
labelPlural: msg`Calendar Channel Event Associations`,
|
||||
description: msg`Calendar Channel Event Associations`,
|
||||
icon: STANDARD_OBJECT_ICONS.calendarChannelEventAssociation,
|
||||
})
|
||||
@WorkspaceIsSystem()
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { registerEnumType } from '@nestjs/graphql';
|
||||
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
@ -70,9 +71,9 @@ registerEnumType(CalendarChannelContactAutoCreationPolicy, {
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.calendarChannel,
|
||||
namePlural: 'calendarChannels',
|
||||
labelSingular: 'Calendar Channel',
|
||||
labelPlural: 'Calendar Channels',
|
||||
description: 'Calendar Channels',
|
||||
labelSingular: msg`Calendar Channel`,
|
||||
labelPlural: msg`Calendar Channels`,
|
||||
description: msg`Calendar Channels`,
|
||||
icon: STANDARD_OBJECT_ICONS.calendarChannel,
|
||||
labelIdentifierStandardId: CALENDAR_CHANNEL_STANDARD_FIELD_IDS.handle,
|
||||
})
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
@ -28,9 +29,9 @@ export enum CalendarEventParticipantResponseStatus {
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.calendarEventParticipant,
|
||||
namePlural: 'calendarEventParticipants',
|
||||
labelSingular: 'Calendar event participant',
|
||||
labelPlural: 'Calendar event participants',
|
||||
description: 'Calendar event participants',
|
||||
labelSingular: msg`Calendar event participant`,
|
||||
labelPlural: msg`Calendar event participants`,
|
||||
description: msg`Calendar event participants`,
|
||||
icon: STANDARD_OBJECT_ICONS.calendarEventParticipant,
|
||||
labelIdentifierStandardId:
|
||||
CALENDAR_EVENT_PARTICIPANT_STANDARD_FIELD_IDS.handle,
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
@ -23,9 +24,9 @@ import { CalendarEventParticipantWorkspaceEntity } from 'src/modules/calendar/co
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.calendarEvent,
|
||||
namePlural: 'calendarEvents',
|
||||
labelSingular: 'Calendar event',
|
||||
labelPlural: 'Calendar events',
|
||||
description: 'Calendar events',
|
||||
labelSingular: msg`Calendar event`,
|
||||
labelPlural: msg`Calendar events`,
|
||||
description: msg`Calendar events`,
|
||||
icon: STANDARD_OBJECT_ICONS.calendarEvent,
|
||||
labelIdentifierStandardId: CALENDAR_EVENT_STANDARD_FIELD_IDS.title,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user