diff --git a/src/discussions/post-comments/comments/comment/CommentEditor.jsx b/src/discussions/post-comments/comments/comment/CommentEditor.jsx index dcbb1ac8..57eff2c0 100644 --- a/src/discussions/post-comments/comments/comment/CommentEditor.jsx +++ b/src/discussions/post-comments/comments/comment/CommentEditor.jsx @@ -57,7 +57,7 @@ const CommentEditor = ({ const shouldRequireCaptcha = !id && captchaSettings.enabled; const captchaValidation = { - recaptchaToken: Yup.string().required('Please complete the CAPTCHA verification'), + recaptchaToken: Yup.string().required(intl.formatMessage(messages.captchaVerificationLabel)), }; const canDisplayEditReason = (edit @@ -112,7 +112,7 @@ const CommentEditor = ({ const saveUpdatedComment = useCallback(async (values, { resetForm, setFieldError }) => { // Validate CAPTCHA for new comments from non-staff users if (shouldRequireCaptcha && !values.recaptchaToken) { - setFieldError('recaptchaToken', 'Please complete the CAPTCHA verification'); + setFieldError('recaptchaToken', intl.formatMessage(messages.captchaVerificationLabel)); return; } @@ -244,7 +244,7 @@ const CommentEditor = ({ })} >