Translation followup (#9735)

Address PR comments and more progress on translation
This commit is contained in:
Félix Malfait
2025-01-19 13:29:19 +01:00
committed by GitHub
parent 052331685f
commit 056cb7c66d
97 changed files with 3981 additions and 402 deletions

View File

@ -13,6 +13,7 @@ import { AppHotkeyScope } from '@/ui/utilities/hotkey/types/AppHotkeyScope';
import { useIsMobile } from '@/ui/utilities/responsive/hooks/useIsMobile';
import { ScrollWrapper } from '@/ui/utilities/scroll/components/ScrollWrapper';
import styled from '@emotion/styled';
import { useLingui } from '@lingui/react/macro';
import { useRecoilValue } from 'recoil';
import { isDefined } from 'twenty-ui';
@ -56,6 +57,8 @@ const StyledEmpty = styled.div`
`;
export const CommandMenu = () => {
const { t } = useLingui();
const { onItemClick } = useCommandMenuOnItemClick();
const commandMenuSearch = useRecoilValue(commandMenuSearchState);
@ -99,51 +102,51 @@ export const CommandMenu = () => {
const commandGroups: CommandGroupConfig[] = [
{
heading: 'Copilot',
heading: t`Copilot`,
items: copilotCommands,
},
{
heading: 'Record Selection',
heading: t`Record Selection`,
items: matchingStandardActionRecordSelectionCommands,
},
{
heading: 'Workflow Record Selection',
heading: t`Workflow Record Selection`,
items: matchingWorkflowRunRecordSelectionCommands,
},
{
heading: 'View',
heading: t`View`,
items: matchingStandardActionGlobalCommands,
},
{
heading: 'Workflows',
heading: t`Workflows`,
items: matchingWorkflowRunGlobalCommands,
},
{
heading: 'Navigate',
heading: t`Navigate`,
items: matchingNavigateCommand,
},
{
heading: 'People',
heading: t`People`,
items: peopleCommands,
},
{
heading: 'Companies',
heading: t`Companies`,
items: companyCommands,
},
{
heading: 'Opportunities',
heading: t`Opportunities`,
items: opportunityCommands,
},
{
heading: 'Notes',
heading: t`Notes`,
items: noteCommands,
},
{
heading: 'Tasks',
heading: t`Tasks`,
items: tasksCommands,
},
{
heading: 'Custom Objects',
heading: t`Custom Objects`,
items: customObjectCommands,
},
];