Add missing translatable messages

[MAILPOET-4908]
This commit is contained in:
Sam Najian
2023-03-07 16:50:13 +01:00
committed by Aschepikov
parent 90b5c03e51
commit 54f0d414d3

View File

@@ -1,6 +1,7 @@
import { __ } from '@wordpress/i18n';
import { MouseEvent, useCallback, useState } from 'react'; import { MouseEvent, useCallback, useState } from 'react';
import ReactStringReplace from 'react-string-replace'; import ReactStringReplace from 'react-string-replace';
import { callApi, getLinkRegex, isTruthy, t, withBoundary } from 'common'; import { callApi, getLinkRegex, isTruthy, withBoundary } from 'common';
import { MailPoet } from 'mailpoet'; import { MailPoet } from 'mailpoet';
function PendingNewsletterMessage({ function PendingNewsletterMessage({
@@ -42,7 +43,10 @@ function PendingNewsletterMessage({
return ( return (
<div className="mailpoet_error"> <div className="mailpoet_error">
{ReactStringReplace( {ReactStringReplace(
t('pendingKeyApprovalNotice'), __(
'Youll soon be able to send once our team reviews your account. In the meantime, you can send previews to [link]your authorized emails[/link].',
'mailpoet',
),
getLinkRegex(), getLinkRegex(),
(match) => ( (match) => (
<a <a
@@ -56,7 +60,10 @@ function PendingNewsletterMessage({
)}{' '} )}{' '}
{showRefreshButton && {showRefreshButton &&
ReactStringReplace( ReactStringReplace(
t('pendingKeyApprovalNoticeRefresh'), __(
'If you have already received approval email, click [link]here[/link] to update the status.',
'mailpoet',
),
getLinkRegex(), getLinkRegex(),
(match) => ( (match) => (
<a href="#" onClick={recheckKey}> <a href="#" onClick={recheckKey}>