capitalize had been moved into twenty-shared. Let's remove the duplicates in server and front !
14 lines
404 B
TypeScript
14 lines
404 B
TypeScript
import { capitalize } from 'twenty-shared';
|
|
|
|
export const buildDescriptionForRelationFieldMetadataOnToField = ({
|
|
relationObjectMetadataNamePlural,
|
|
targetObjectLabelSingular,
|
|
}: {
|
|
relationObjectMetadataNamePlural: string;
|
|
targetObjectLabelSingular: string;
|
|
}) => {
|
|
const description = `${capitalize(relationObjectMetadataNamePlural)} ${targetObjectLabelSingular}`;
|
|
|
|
return { description };
|
|
};
|