Files
twenty/packages/twenty-server/src/engine/metadata-modules/object-metadata/utils/build-description-for-relation-field-on-from-field.util.ts
Marie 7d7955fc65 Move capitalize into twenty-shared (#9414)
capitalize had been moved into twenty-shared. Let's remove the
duplicates in server and front !
2025-01-07 14:25:29 +00:00

14 lines
418 B
TypeScript

import { capitalize } from 'twenty-shared';
export const buildDescriptionForRelationFieldMetadataOnFromField = ({
relationObjectMetadataNamePlural,
targetObjectLabelSingular,
}: {
relationObjectMetadataNamePlural: string;
targetObjectLabelSingular: string;
}) => {
const description = `${capitalize(relationObjectMetadataNamePlural)} tied to the ${targetObjectLabelSingular}`;
return { description };
};