i18n: use WordPress %s
placeholders
This commit is contained in:
committed by
Jack Kitterhing
parent
0daf7e8855
commit
9bdfabc039
@@ -21,10 +21,10 @@ const SenderEmailAddressWarning = ({ emailAddress, mssActive }) => {
|
||||
<p className="sender_email_address_warning">
|
||||
{ReactStringReplace(
|
||||
MailPoet.I18n.t('senderEmailAddressWarning2'),
|
||||
/(%suggested|%originalSender|<em>.*<\/em>)/,
|
||||
/(%1\$s|%2\$s|<em>.*<\/em>)/,
|
||||
(match) => {
|
||||
if (match === '%suggested') return suggestedEmailAddress;
|
||||
if (match === '%originalSender') return <em key="sender-email">{ emailAddress }</em>;
|
||||
if (match === '%1$s') return suggestedEmailAddress;
|
||||
if (match === '%2$s') return <em key="sender-email">{ emailAddress }</em>;
|
||||
return <em key="reply-to">{match.replace(/<\/?em>/g, '')}</em>;
|
||||
}
|
||||
)}
|
||||
|
Reference in New Issue
Block a user