Translate label and descriptions for objects (#9876)
Begin server-side translations
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
|
||||
import { Relation } from 'src/engine/workspace-manager/workspace-sync-metadata/interfaces/relation.interface';
|
||||
|
||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||
@ -20,9 +22,9 @@ import { PersonWorkspaceEntity } from 'src/modules/person/standard-objects/perso
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.noteTarget,
|
||||
namePlural: 'noteTargets',
|
||||
labelSingular: 'Note Target',
|
||||
labelPlural: 'Note Targets',
|
||||
description: 'A note target',
|
||||
labelSingular: msg`Note Target`,
|
||||
labelPlural: msg`Note Targets`,
|
||||
description: msg`A note target`,
|
||||
icon: STANDARD_OBJECT_ICONS.noteTarget,
|
||||
})
|
||||
@WorkspaceIsSystem()
|
||||
|
||||
@ -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';
|
||||
@ -42,9 +43,9 @@ export const SEARCH_FIELDS_FOR_NOTES: FieldTypeAndNameMetadata[] = [
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.note,
|
||||
namePlural: 'notes',
|
||||
labelSingular: 'Note',
|
||||
labelPlural: 'Notes',
|
||||
description: 'A note',
|
||||
labelSingular: msg`Note`,
|
||||
labelPlural: msg`Notes`,
|
||||
description: msg`A note`,
|
||||
icon: STANDARD_OBJECT_ICONS.note,
|
||||
shortcut: 'N',
|
||||
labelIdentifierStandardId: NOTE_STANDARD_FIELD_IDS.title,
|
||||
|
||||
Reference in New Issue
Block a user