diff --git a/core/server/api/shared/validators/input/all.js b/core/server/api/shared/validators/input/all.js index 8ef12b5b5a..08d2b63d17 100644 --- a/core/server/api/shared/validators/input/all.js +++ b/core/server/api/shared/validators/input/all.js @@ -30,7 +30,10 @@ const validate = (config, attrs) => { _.each(config, (value, key) => { if (value.required && !attrs[key]) { errors.push(new common.errors.ValidationError({ - message: `${key} is required.` + message: common.i18n.t('notices.data.validation.index.validationFailed', { + validationName: 'FieldIsRequired', + key: key + }) })); } });