Translate label and descriptions for objects (#9876)
Begin server-side translations
This commit is contained in:
@ -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()
|
||||
|
||||
@ -1,5 +1,6 @@
|
||||
import { Relation } from 'typeorm';
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
import { Relation } from 'typeorm';
|
||||
|
||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||
import { BaseWorkspaceEntity } from 'src/engine/twenty-orm/base.workspace-entity';
|
||||
@ -23,9 +24,9 @@ export enum ViewFilterGroupLogicalOperator {
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.viewFilterGroup,
|
||||
namePlural: 'viewFilterGroups',
|
||||
labelSingular: 'View Filter Group',
|
||||
labelPlural: 'View Filter Groups',
|
||||
description: '(System) View Filter Groups',
|
||||
labelSingular: msg`View Filter Group`,
|
||||
labelPlural: msg`View Filter Groups`,
|
||||
description: msg`(System) View Filter Groups`,
|
||||
icon: 'IconFilterBolt',
|
||||
})
|
||||
@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';
|
||||
@ -19,9 +20,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.viewFilter,
|
||||
namePlural: 'viewFilters',
|
||||
labelSingular: 'View Filter',
|
||||
labelPlural: 'View Filters',
|
||||
description: '(System) View Filters',
|
||||
labelSingular: msg`View Filter`,
|
||||
labelPlural: msg`View Filters`,
|
||||
description: msg`(System) View Filters`,
|
||||
icon: STANDARD_OBJECT_ICONS.viewFilter,
|
||||
})
|
||||
@WorkspaceIsNotAuditLogged()
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
import { msg } from '@lingui/core/macro';
|
||||
import { FieldMetadataType } from 'twenty-shared';
|
||||
|
||||
import { RelationMetadataType } from 'src/engine/metadata-modules/relation-metadata/relation-metadata.entity';
|
||||
@ -17,9 +18,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.viewGroup,
|
||||
namePlural: 'viewGroups',
|
||||
labelSingular: 'View Group',
|
||||
labelPlural: 'View Groups',
|
||||
description: '(System) View Groups',
|
||||
labelSingular: msg`View Group`,
|
||||
labelPlural: msg`View Groups`,
|
||||
description: msg`(System) View Groups`,
|
||||
icon: STANDARD_OBJECT_ICONS.viewGroup,
|
||||
})
|
||||
@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';
|
||||
@ -20,9 +21,9 @@ import { ViewWorkspaceEntity } from 'src/modules/view/standard-objects/view.work
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.viewSort,
|
||||
namePlural: 'viewSorts',
|
||||
labelSingular: 'View Sort',
|
||||
labelPlural: 'View Sorts',
|
||||
description: '(System) View Sorts',
|
||||
labelSingular: msg`View Sort`,
|
||||
labelPlural: msg`View Sorts`,
|
||||
description: msg`(System) View Sorts`,
|
||||
icon: STANDARD_OBJECT_ICONS.viewSort,
|
||||
})
|
||||
@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';
|
||||
@ -27,9 +28,9 @@ import { ViewSortWorkspaceEntity } from 'src/modules/view/standard-objects/view-
|
||||
@WorkspaceEntity({
|
||||
standardId: STANDARD_OBJECT_IDS.view,
|
||||
namePlural: 'views',
|
||||
labelSingular: 'View',
|
||||
labelPlural: 'Views',
|
||||
description: '(System) Views',
|
||||
labelSingular: msg`View`,
|
||||
labelPlural: msg`Views`,
|
||||
description: msg`(System) Views`,
|
||||
icon: STANDARD_OBJECT_ICONS.view,
|
||||
labelIdentifierStandardId: VIEW_STANDARD_FIELD_IDS.name,
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user