Add missing translatable messages
[MAILPOET-4908]
This commit is contained in:
@@ -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'),
|
__(
|
||||||
|
'You’ll 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}>
|
||||||
|
Reference in New Issue
Block a user