From b3bd371a27a61cd6f22969b9cc3a729e98163535 Mon Sep 17 00:00:00 2001 From: David Remer Date: Fri, 26 Jan 2024 09:54:14 +0200 Subject: [PATCH] Make domain authentication notices translateable [MAILPOET-5852] --- .../sender-domain-notice-body.tsx | 26 ++++++++++++++----- 1 file changed, 20 insertions(+), 6 deletions(-) diff --git a/mailpoet/assets/js/src/common/sender-domain-notice/sender-domain-notice-body.tsx b/mailpoet/assets/js/src/common/sender-domain-notice/sender-domain-notice-body.tsx index bd20e99a08..f756d72ff9 100644 --- a/mailpoet/assets/js/src/common/sender-domain-notice/sender-domain-notice-body.tsx +++ b/mailpoet/assets/js/src/common/sender-domain-notice/sender-domain-notice-body.tsx @@ -19,17 +19,31 @@ function SenderDomainNoticeBody({ }) { const renderMessage = (messageKey: string) => { const messages: { [key: string]: string } = { - freeSmall: + freeSmall: __( "Shared 3rd-party domains like will send from MailPoet's shared domain. We recommend that you use your site's branded domain instead.", - free: "MailPoet cannot send email campaigns from shared 3rd-party domains like . Please send from your site's branded domain instead.", + 'mailpoet', + ), + free: __( + "MailPoet cannot send email campaigns from shared 3rd-party domains like . Please send from your site's branded domain instead.", + 'mailpoet', + ), // TODO: Remove freeWarning after the enforcement date has passed - freeWarning: + freeWarning: __( "Starting on February 1st, 2024, MailPoet will no longer be able to send from email addresses on shared 3rd party domains like . Please send from your site's branded domain instead.", - partiallyVerified: + 'mailpoet', + ), + partiallyVerified: __( 'Update your domain settings to improve email deliverability and meet new sending requirements.', - smallSender: + 'mailpoet', + ), + smallSender: __( 'Authenticate to send as and improve email deliverability.', - default: 'Authenticate domain to send new emails as .', + 'mailpoet', + ), + default: __( + 'Authenticate domain to send new emails as .', + 'mailpoet', + ), }; const defaultMessage = messages[messageKey] || messages.default;