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';
|
||||
@ -24,9 +25,9 @@ import { MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-ob
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.messageChannelMessageAssociation,
|
||||
namePlural: 'messageChannelMessageAssociations',
|
||||
labelSingular: 'Message Channel Message Association',
|
||||
labelPlural: 'Message Channel Message Associations',
|
||||
description: 'Message Synced with a Message Channel',
|
||||
labelSingular: msg`Message Channel Message Association`,
|
||||
labelPlural: msg`Message Channel Message Associations`,
|
||||
description: msg`Message Synced with a Message Channel`,
|
||||
icon: STANDARD_OBJECT_ICONS.messageChannelMessageAssociation,
|
||||
})
|
||||
@WorkspaceIsNotAuditLogged()
|
||||
|
||||
@ -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';
|
||||
@ -79,9 +80,9 @@ registerEnumType(MessageChannelContactAutoCreationPolicy, {
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.messageChannel,
|
||||
namePlural: 'messageChannels',
|
||||
labelSingular: 'Message Channel',
|
||||
labelPlural: 'Message Channels',
|
||||
description: 'Message Channels',
|
||||
labelSingular: msg`Message Channel`,
|
||||
labelPlural: msg`Message Channels`,
|
||||
description: msg`Message Channels`,
|
||||
icon: STANDARD_OBJECT_ICONS.messageChannel,
|
||||
labelIdentifierStandardId: MESSAGE_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';
|
||||
@ -21,9 +22,9 @@ import { WorkspaceMemberWorkspaceEntity } from 'src/modules/workspace-member/sta
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.messageParticipant,
|
||||
namePlural: 'messageParticipants',
|
||||
labelSingular: 'Message Participant',
|
||||
labelPlural: 'Message Participants',
|
||||
description: 'Message Participants',
|
||||
labelSingular: msg`Message Participant`,
|
||||
labelPlural: msg`Message Participants`,
|
||||
description: msg`Message Participants`,
|
||||
icon: STANDARD_OBJECT_ICONS.messageParticipant,
|
||||
labelIdentifierStandardId: MESSAGE_PARTICIPANT_STANDARD_FIELD_IDS.handle,
|
||||
})
|
||||
|
||||
@ -1,3 +1,5 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
|
||||
import {
|
||||
@ -18,9 +20,9 @@ import { MessageWorkspaceEntity } from 'src/modules/messaging/common/standard-ob
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.messageThread,
|
||||
namePlural: 'messageThreads',
|
||||
labelSingular: 'Message Thread',
|
||||
labelPlural: 'Message Threads',
|
||||
description: 'Message Thread',
|
||||
labelSingular: msg`Message Thread`,
|
||||
labelPlural: msg`Message Threads`,
|
||||
description: msg`A group of related messages (e.g. email thread, chat thread)`,
|
||||
icon: STANDARD_OBJECT_ICONS.messageThread,
|
||||
})
|
||||
@WorkspaceIsNotAuditLogged()
|
||||
|
||||
@ -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';
|
||||
@ -24,9 +25,9 @@ import { MessageThreadWorkspaceEntity } from 'src/modules/messaging/common/stand
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.message,
|
||||
namePlural: 'messages',
|
||||
labelSingular: 'Message',
|
||||
labelPlural: 'Messages',
|
||||
description: 'Message',
|
||||
labelSingular: msg`Message`,
|
||||
labelPlural: msg`Messages`,
|
||||
description: msg`A message sent or received through a messaging channel (email, chat, etc.)`,
|
||||
icon: STANDARD_OBJECT_ICONS.message,
|
||||
labelIdentifierStandardId: MESSAGE_STANDARD_FIELD_IDS.subject,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user