mirror of
https://github.com/strapi/strapi.git
synced 2025-12-28 23:57:32 +00:00
Improve microcopy
This commit is contained in:
parent
8f0906d6af
commit
1973fb57f6
@ -60,7 +60,7 @@
|
||||
"error.contentTypeName.reserved-name": "This name cannot be used in your project as it might break other functionalities",
|
||||
"error.validation.enum-duplicate": "Duplicate values are not allowed",
|
||||
"error.validation.enum-empty-string": "Empty strings are not allowed",
|
||||
"error.validation.enum-regex": "At least one value contains invalid characters. Values should always have an alphabetical character preceding any number.",
|
||||
"error.validation.enum-regex": "At least one value contains invalid characters. Values should start with an alphabetical character preceeding the first occurence of a number.",
|
||||
"error.validation.minSupMax": "Can't be superior",
|
||||
"error.validation.positive": "Must be a positive number",
|
||||
"error.validation.regex": "Regex pattern is invalid",
|
||||
|
||||
@ -61,7 +61,7 @@ const contentTypeSchemaValidator = yup.object().shape({
|
||||
|
||||
// should match the GraphQL regex
|
||||
if (!regressedValues.every(value => GRAPHQL_ENUM_REGEX.test(value))) {
|
||||
const message = `Invalid enumervarion value. Values should always have an alphabetical character preceding any number. Update your enumeration '${attrName}'.`;
|
||||
const message = `Invalid enumeration value. Values should start with an alphabetical character preceeding the first occurence of a number. Update your enumeration '${attrName}'.`;
|
||||
|
||||
return this.createError({ message });
|
||||
}
|
||||
@ -79,7 +79,7 @@ const contentTypeSchemaValidator = yup.object().shape({
|
||||
);
|
||||
|
||||
if (duplicates.length) {
|
||||
const message = `Some enum values of the field '${attrName}' collide when normalized: ${duplicates.join(
|
||||
const message = `Some enumeration values of the field '${attrName}' collide when normalized: ${duplicates.join(
|
||||
', '
|
||||
)}. Please modify your enumeration.`;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user