Skip to content

The open alternative to Salesforce, designed for AI.

fix(twenty-front): resolve the command menu item i18n rendering issue (#23913)

A72e67105454a
diff --git a/packages/twenty-front/src/modules/command-menu-item/utils/getCommandMenuItemLabel.ts b/packages/twenty-front/src/modules/command-menu-item/utils/getCommandMenuItemLabel.ts
index 8885a62ae20..b432217c4f3 100644
--- a/packages/twenty-front/src/modules/command-menu-item/utils/getCommandMenuItemLabel.ts
+++ b/packages/twenty-front/src/modules/command-menu-item/utils/getCommandMenuItemLabel.ts
@@ -1,5 +1,4 @@
import { i18n, type MessageDescriptor } from '@lingui/core';
-import { isString } from '@sniptt/guards';
import { type Nullable } from 'twenty-shared/types';
import { isDefined } from 'twenty-shared/utils';
@@ -10,5 +9,5 @@ export const getCommandMenuItemLabel = (
return '';
}
- return isString(label) ? label : i18n._(label);
+ return i18n._(label);
};