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,3 +1,4 @@
import { msg } from '@lingui/core/macro';
import { FieldMetadataType } from 'twenty-shared';
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
@ -14,9 +15,9 @@ import { STANDARD_OBJECT_IDS } from 'src/engine/workspace-manager/workspace-sync
@WorkspaceEntity({
standardId: STANDARD_OBJECT_IDS.webhook,
namePlural: 'webhooks',
labelSingular: 'Webhook',
labelPlural: 'Webhooks',
description: 'A webhook',
labelSingular: msg`Webhook`,
labelPlural: msg`Webhooks`,
description: msg`A webhook`,
icon: STANDARD_OBJECT_ICONS.webhook,
labelIdentifierStandardId: WEBHOOK_STANDARD_FIELD_IDS.targetUrl,
})