Localization of actions (#9934)

Co-authored-by: greptile-apps[bot] <165735046+greptile-apps[bot]@users.noreply.github.com>
This commit is contained in:
Félix Malfait
2025-01-30 17:00:35 +01:00
committed by GitHub
parent 385bf591cf
commit 9ec524213c
49 changed files with 3391 additions and 1311 deletions

View File

@ -13,6 +13,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import {
IconDatabaseExport,
IconHeart,
@ -30,7 +31,7 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.ADD_TO_FAVORITES,
label: 'Add to favorites',
label: msg`Add to favorites`,
position: 0,
Icon: IconHeart,
availableOn: [
@ -43,7 +44,7 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,
label: 'Remove from favorites',
label: msg`Remove from favorites`,
position: 1,
Icon: IconHeartOff,
availableOn: [
@ -56,7 +57,7 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.DELETE,
label: 'Delete',
label: msg`Delete`,
position: 2,
Icon: IconTrash,
accent: 'danger',
@ -71,8 +72,8 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.DELETE,
label: 'Delete records',
shortLabel: 'Delete',
label: msg`Delete records`,
shortLabel: msg`Delete`,
position: 3,
Icon: IconTrash,
accent: 'danger',
@ -84,8 +85,8 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.EXPORT,
label: 'Export records',
shortLabel: 'Export',
label: msg`Export records`,
shortLabel: msg`Export`,
position: 4,
Icon: IconDatabaseExport,
accent: 'default',
@ -97,8 +98,8 @@ export const DEFAULT_ACTIONS_CONFIG_V1: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.Object,
key: NoSelectionRecordActionKeys.EXPORT_VIEW,
label: 'Export view',
shortLabel: 'Export',
label: msg`Export view`,
shortLabel: msg`Export`,
position: 5,
Icon: IconDatabaseExport,
accent: 'default',

View File

@ -18,6 +18,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import {
IconChevronDown,
IconChevronUp,
@ -40,8 +41,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.Object,
key: NoSelectionRecordActionKeys.CREATE_NEW_RECORD,
label: 'Create new record',
shortLabel: 'New record',
label: msg`Create new record`,
shortLabel: msg`New record`,
position: 0,
isPinned: true,
Icon: IconPlus,
@ -52,8 +53,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.EXPORT_NOTE_TO_PDF,
label: 'Export to PDF',
shortLabel: 'Export',
label: msg`Export to PDF`,
shortLabel: msg`Export`,
position: 0,
isPinned: false,
Icon: IconFileExport,
@ -64,8 +65,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.ADD_TO_FAVORITES,
label: 'Add to favorites',
shortLabel: 'Add to favorites',
label: msg`Add to favorites`,
shortLabel: msg`Add to favorites`,
position: 1,
isPinned: true,
Icon: IconHeart,
@ -79,8 +80,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,
label: 'Remove from favorites',
shortLabel: 'Remove from favorites',
label: msg`Remove from favorites`,
shortLabel: msg`Remove from favorites`,
isPinned: true,
position: 2,
Icon: IconHeartOff,
@ -94,8 +95,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.DELETE,
label: 'Delete record',
shortLabel: 'Delete',
label: msg`Delete record`,
shortLabel: msg`Delete`,
position: 3,
Icon: IconTrash,
accent: 'danger',
@ -110,8 +111,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.DELETE,
label: 'Delete records',
shortLabel: 'Delete',
label: msg`Delete records`,
shortLabel: msg`Delete`,
position: 4,
Icon: IconTrash,
accent: 'danger',
@ -123,8 +124,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.EXPORT,
label: 'Export records',
shortLabel: 'Export',
label: msg`Export records`,
shortLabel: msg`Export`,
position: 5,
Icon: IconDatabaseExport,
accent: 'default',
@ -136,8 +137,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.Object,
key: NoSelectionRecordActionKeys.EXPORT_VIEW,
label: 'Export view',
shortLabel: 'Export',
label: msg`Export view`,
shortLabel: msg`Export`,
position: 6,
Icon: IconDatabaseExport,
accent: 'default',
@ -149,8 +150,8 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.DESTROY,
label: 'Permanently destroy record',
shortLabel: 'Destroy',
label: msg`Permanently destroy record`,
shortLabel: msg`Destroy`,
position: 7,
Icon: IconTrashX,
accent: 'danger',
@ -165,8 +166,7 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_PREVIOUS_RECORD,
label: 'Navigate to previous record',
shortLabel: '',
label: msg`Navigate to previous record`,
position: 8,
isPinned: true,
Icon: IconChevronUp,
@ -177,8 +177,7 @@ export const DEFAULT_ACTIONS_CONFIG_V2: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_NEXT_RECORD,
label: 'Navigate to next record',
shortLabel: '',
label: msg`Navigate to next record`,
position: 9,
isPinned: true,
Icon: IconChevronDown,

View File

@ -25,6 +25,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import {
IconChevronDown,
IconChevronUp,
@ -51,8 +52,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: NoSelectionRecordActionKeys.CREATE_NEW_RECORD,
label: 'Create new record',
shortLabel: 'New record',
label: msg`Create new record`,
shortLabel: msg`New record`,
position: 0,
isPinned: true,
Icon: IconPlus,
@ -61,8 +62,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
activateWorkflowSingleRecord: {
key: WorkflowSingleRecordActionKeys.ACTIVATE,
label: 'Activate Workflow',
shortLabel: 'Activate',
label: msg`Activate Workflow`,
shortLabel: msg`Activate`,
isPinned: true,
position: 1,
Icon: IconPower,
@ -76,8 +77,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
deactivateWorkflowSingleRecord: {
key: WorkflowSingleRecordActionKeys.DEACTIVATE,
label: 'Deactivate Workflow',
shortLabel: 'Deactivate',
label: msg`Deactivate Workflow`,
shortLabel: msg`Deactivate`,
isPinned: true,
position: 2,
Icon: IconPlayerPause,
@ -91,8 +92,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
discardWorkflowDraftSingleRecord: {
key: WorkflowSingleRecordActionKeys.DISCARD_DRAFT,
label: 'Discard Draft',
shortLabel: 'Discard Draft',
label: msg`Discard Draft`,
shortLabel: msg`Discard Draft`,
isPinned: true,
position: 3,
Icon: IconTrash,
@ -106,8 +107,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
seeWorkflowActiveVersionSingleRecord: {
key: WorkflowSingleRecordActionKeys.SEE_ACTIVE_VERSION,
label: 'See active version',
shortLabel: 'See active version',
label: msg`See active version`,
shortLabel: msg`See active version`,
isPinned: false,
position: 4,
Icon: IconHistory,
@ -121,8 +122,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
seeWorkflowRunsSingleRecord: {
key: WorkflowSingleRecordActionKeys.SEE_RUNS,
label: 'See runs',
shortLabel: 'See runs',
label: msg`See runs`,
shortLabel: msg`See runs`,
isPinned: false,
position: 5,
Icon: IconHistoryToggle,
@ -136,8 +137,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
seeWorkflowVersionsHistorySingleRecord: {
key: WorkflowSingleRecordActionKeys.SEE_VERSIONS,
label: 'See versions history',
shortLabel: 'See versions',
label: msg`See versions history`,
shortLabel: msg`See versions`,
isPinned: false,
position: 6,
Icon: IconHistory,
@ -151,8 +152,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
},
testWorkflowSingleRecord: {
key: WorkflowSingleRecordActionKeys.TEST,
label: 'Test Workflow',
shortLabel: 'Test',
label: msg`Test Workflow`,
shortLabel: msg`Test`,
isPinned: true,
position: 7,
Icon: IconPlayerPlay,
@ -168,8 +169,7 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_PREVIOUS_RECORD,
label: 'Navigate to previous workflow',
shortLabel: '',
label: msg`Navigate to previous workflow`,
position: 8,
Icon: IconChevronUp,
availableOn: [ActionViewType.SHOW_PAGE],
@ -179,8 +179,7 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_NEXT_RECORD,
label: 'Navigate to next workflow',
shortLabel: '',
label: msg`Navigate to next workflow`,
position: 9,
Icon: IconChevronDown,
availableOn: [ActionViewType.SHOW_PAGE],
@ -190,8 +189,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.ADD_TO_FAVORITES,
label: 'Add to favorites',
shortLabel: 'Add to favorites',
label: msg`Add to favorites`,
shortLabel: msg`Add to favorites`,
position: 10,
isPinned: false,
Icon: IconHeart,
@ -205,8 +204,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,
label: 'Remove from favorites',
shortLabel: 'Remove from favorites',
label: msg`Remove from favorites`,
shortLabel: msg`Remove from favorites`,
isPinned: false,
position: 11,
Icon: IconHeartOff,
@ -220,8 +219,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.DELETE,
label: 'Delete record',
shortLabel: 'Delete',
label: msg`Delete record`,
shortLabel: msg`Delete`,
position: 12,
Icon: IconTrash,
accent: 'danger',
@ -236,8 +235,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.DELETE,
label: 'Delete records',
shortLabel: 'Delete',
label: msg`Delete records`,
shortLabel: msg`Delete`,
position: 13,
Icon: IconTrash,
accent: 'danger',
@ -249,8 +248,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.DESTROY,
label: 'Permanently destroy record',
shortLabel: 'Destroy',
label: msg`Permanently destroy record`,
shortLabel: msg`Destroy`,
position: 14,
Icon: IconTrashX,
accent: 'danger',
@ -265,8 +264,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.EXPORT,
label: 'Export records',
shortLabel: 'Export',
label: msg`Export records`,
shortLabel: msg`Export`,
position: 15,
Icon: IconDatabaseExport,
accent: 'default',
@ -278,8 +277,8 @@ export const WORKFLOW_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: NoSelectionRecordActionKeys.EXPORT_VIEW,
label: 'Export view',
shortLabel: 'Export',
label: msg`Export view`,
shortLabel: msg`Export`,
position: 16,
Icon: IconDatabaseExport,
accent: 'default',

View File

@ -13,6 +13,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import {
IconChevronDown,
IconChevronUp,
@ -31,8 +32,8 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.ADD_TO_FAVORITES,
label: 'Add to favorites',
shortLabel: 'Add to favorites',
label: msg`Add to favorites`,
shortLabel: msg`Add to favorites`,
position: 0,
isPinned: true,
Icon: IconHeart,
@ -46,8 +47,8 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,
label: 'Remove from favorites',
shortLabel: 'Remove from favorites',
label: msg`Remove from favorites`,
shortLabel: msg`Remove from favorites`,
isPinned: true,
position: 1,
Icon: IconHeartOff,
@ -61,8 +62,7 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_PREVIOUS_RECORD,
label: 'Navigate to previous record',
shortLabel: '',
label: msg`Navigate to previous record`,
position: 2,
isPinned: true,
Icon: IconChevronUp,
@ -73,8 +73,7 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_NEXT_RECORD,
label: 'Navigate to next record',
shortLabel: '',
label: msg`Navigate to next record`,
position: 3,
isPinned: true,
Icon: IconChevronDown,
@ -85,8 +84,8 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.EXPORT,
label: 'Export records',
shortLabel: 'Export',
label: msg`Export records`,
shortLabel: msg`Export`,
position: 4,
Icon: IconDatabaseExport,
accent: 'default',
@ -98,8 +97,8 @@ export const WORKFLOW_RUNS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: NoSelectionRecordActionKeys.EXPORT_VIEW,
label: 'Export view',
shortLabel: 'Export',
label: msg`Export view`,
shortLabel: msg`Export`,
position: 5,
Icon: IconDatabaseExport,
accent: 'default',

View File

@ -17,6 +17,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import {
IconChevronDown,
IconChevronUp,
@ -36,8 +37,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
> = {
useAsDraftWorkflowVersionSingleRecord: {
key: WorkflowVersionSingleRecordActionKeys.USE_AS_DRAFT,
label: 'Use as draft',
shortLabel: 'Use as draft',
label: msg`Use as draft`,
shortLabel: msg`Use as draft`,
position: 1,
isPinned: true,
type: ActionMenuEntryType.Standard,
@ -51,8 +52,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
},
seeWorkflowRunsSingleRecord: {
key: WorkflowVersionSingleRecordActionKeys.SEE_RUNS,
label: 'See runs',
shortLabel: 'See runs',
label: msg`See runs`,
shortLabel: msg`See runs`,
position: 2,
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
@ -65,8 +66,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
},
seeWorkflowVersionsHistorySingleRecord: {
key: WorkflowVersionSingleRecordActionKeys.SEE_VERSIONS,
label: 'See versions history',
shortLabel: 'See versions',
label: msg`See versions history`,
shortLabel: msg`See versions`,
position: 3,
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
@ -81,8 +82,7 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_PREVIOUS_RECORD,
label: 'Navigate to previous version',
shortLabel: '',
label: msg`Navigate to previous version`,
position: 4,
Icon: IconChevronUp,
availableOn: [ActionViewType.SHOW_PAGE],
@ -92,8 +92,7 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.NAVIGATE_TO_NEXT_RECORD,
label: 'Navigate to next version',
shortLabel: '',
label: msg`Navigate to next version`,
position: 5,
Icon: IconChevronDown,
availableOn: [ActionViewType.SHOW_PAGE],
@ -103,8 +102,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.ADD_TO_FAVORITES,
label: 'Add to favorites',
shortLabel: 'Add to favorites',
label: msg`Add to favorites`,
shortLabel: msg`Add to favorites`,
position: 6,
isPinned: false,
Icon: IconHeart,
@ -118,8 +117,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: SingleRecordActionKeys.REMOVE_FROM_FAVORITES,
label: 'Remove from favorites',
shortLabel: 'Remove from favorites',
label: msg`Remove from favorites`,
shortLabel: msg`Remove from favorites`,
isPinned: false,
position: 7,
Icon: IconHeartOff,
@ -133,8 +132,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: MultipleRecordsActionKeys.EXPORT,
label: 'Export records',
shortLabel: 'Export',
label: msg`Export records`,
shortLabel: msg`Export`,
position: 8,
Icon: IconDatabaseExport,
accent: 'default',
@ -146,8 +145,8 @@ export const WORKFLOW_VERSIONS_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.RecordSelection,
key: NoSelectionRecordActionKeys.EXPORT_VIEW,
label: 'Export view',
shortLabel: 'Export',
label: msg`Export view`,
shortLabel: msg`Export`,
position: 9,
Icon: IconDatabaseExport,
accent: 'default',

View File

@ -9,6 +9,7 @@ import { recordStoreFamilyState } from '@/object-record/record-store/states/reco
import { useRecoilComponentValueV2 } from '@/ui/utilities/state/component-state/hooks/useRecoilComponentValueV2';
import { useAllActiveWorkflowVersions } from '@/workflow/hooks/useAllActiveWorkflowVersions';
import { useRunWorkflowVersion } from '@/workflow/hooks/useRunWorkflowVersion';
import { msg } from '@lingui/core/macro';
import { useRecoilValue } from 'recoil';
import { capitalize } from 'twenty-shared';
@ -61,7 +62,7 @@ export const useWorkflowRunRecordActions = ({
type: ActionMenuEntryType.WorkflowRun,
key: `workflow-run-${activeWorkflowVersion.id}`,
scope: ActionMenuEntryScope.RecordSelection,
label: name,
label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
position: index,
Icon: IconSettingsAutomation,
onClick: async () => {

View File

@ -7,6 +7,7 @@ import {
ActionMenuEntryScope,
ActionMenuEntryType,
} from '@/action-menu/types/ActionMenuEntry';
import { msg } from '@lingui/core/macro';
import { IconSearch } from 'twenty-ui';
export const RECORD_AGNOSTIC_ACTIONS_CONFIG: Record<
@ -19,8 +20,8 @@ export const RECORD_AGNOSTIC_ACTIONS_CONFIG: Record<
type: ActionMenuEntryType.Standard,
scope: ActionMenuEntryScope.Global,
key: RecordAgnosticActionsKey.SEARCH_RECORDS,
label: 'Search records',
shortLabel: 'Search',
label: msg`Search records`,
shortLabel: msg`Search`,
position: 0,
isPinned: false,
Icon: IconSearch,

View File

@ -5,6 +5,7 @@ import {
import { useAllActiveWorkflowVersions } from '@/workflow/hooks/useAllActiveWorkflowVersions';
import { useRunWorkflowVersion } from '@/workflow/hooks/useRunWorkflowVersion';
import { useIsFeatureEnabled } from '@/workspace/hooks/useIsFeatureEnabled';
import { msg } from '@lingui/core/macro';
import { capitalize } from 'twenty-shared';
import { IconSettingsAutomation, isDefined } from 'twenty-ui';
@ -37,7 +38,7 @@ export const useRunWorkflowActions = () => {
type: ActionMenuEntryType.WorkflowRun,
key: `workflow-run-${activeWorkflowVersion.id}`,
scope: ActionMenuEntryScope.Global,
label: name,
label: msg`${name}`, // eslint-disable-line lingui/no-single-variables-to-translate
position: index,
Icon: IconSettingsAutomation,
useAction: () => {