The open alternative to Salesforce, designed for AI.
TypeScript crmcrm-systemcustomergood-first-issuegraphqlhacktoberfestjavascriptmarketingmonoreponestjsopen-sourcepostgresqlreactreactjssalestypescriptweb
import { type MessageDescriptor } from '@lingui/core';
import { msg } from '@lingui/core/macro';
import { type ValidationRuleFunctionName } from 'twenty-shared/types';
export const VALIDATION_RULE_FUNCTION_DESCRIPTIONS: Record<
ValidationRuleFunctionName,
MessageDescriptor
> = {
isDefined: msg`True when the value is set, even to an empty text.`,
isEmpty: msg`True when the value is not set, an empty text, an empty list, or a composite field with every part empty.`,
isNonEmptyString: msg`True when the value is a text with at least one character.`,
includes: msg`True when a multi-select or array field contains the value, or when a text contains the given text. Letter case matters.`,
arrayLength: msg`The number of items in the list, or 0 when it is not a list.`,
};