Translate label and descriptions for objects (#9876)

Begin server-side translations
This commit is contained in:
Félix Malfait
2025-01-28 09:54:59 +01:00
committed by GitHub
parent 4542199e5c
commit 08a0e67477
44 changed files with 1015 additions and 132 deletions

View File

@ -1,7 +1,8 @@
import { registerEnumType } from '@nestjs/graphql';
import { Relation } from 'typeorm';
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { Relation } from 'typeorm';
import { AGGREGATE_OPERATIONS } from 'src/engine/api/graphql/graphql-query-runner/constants/aggregate-operations.constant';
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
@ -26,9 +27,9 @@ registerEnumType(AGGREGATE_OPERATIONS, {
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.viewField,
namePlural: 'viewFields',
labelSingular: 'View Field',
labelPlural: 'View Fields',
description: '(System) View Fields',
labelSingular: msg`View Field`,
labelPlural: msg`View Fields`,
description: msg`(System) View Fields`,
icon: STANDARD_OBJECT_ICONS.viewField,
})
@WorkspaceIsNotAuditLogged()