diff --git a/mailpoet/assets/js/src/common/confirm_alert.jsx b/mailpoet/assets/js/src/common/confirm_alert.jsx
index a2b79e916d..1c4828a50f 100644
--- a/mailpoet/assets/js/src/common/confirm_alert.jsx
+++ b/mailpoet/assets/js/src/common/confirm_alert.jsx
@@ -1,7 +1,9 @@
-import { MailPoet } from 'mailpoet';
+import { __ } from '@wordpress/i18n';
import PropTypes from 'prop-types';
import ReactDOMServer from 'react-dom/server';
+import { MailPoet } from 'mailpoet';
+
function ConfirmAlert(props) {
MailPoet.Modal.popup({
title: props.title,
@@ -49,9 +51,9 @@ ConfirmAlert.propTypes = {
};
ConfirmAlert.defaultProps = {
- title: MailPoet.I18n.t('confirmTitle'),
- cancelLabel: MailPoet.I18n.t('cancelLabel'),
- confirmLabel: MailPoet.I18n.t('confirmLabel'),
+ title: __('Confirm to proceed', 'mailpoet'),
+ cancelLabel: __('Cancel', 'mailpoet'),
+ confirmLabel: __('Confirm', 'mailpoet'),
};
export function confirmAlert(props) {
diff --git a/mailpoet/assets/js/src/listing/bulk_actions.jsx b/mailpoet/assets/js/src/listing/bulk_actions.jsx
index ed565929a3..d5c36be91b 100644
--- a/mailpoet/assets/js/src/listing/bulk_actions.jsx
+++ b/mailpoet/assets/js/src/listing/bulk_actions.jsx
@@ -1,6 +1,6 @@
import { Component } from 'react';
+import { __ } from '@wordpress/i18n';
-import { MailPoet } from 'mailpoet';
import PropTypes from 'prop-types';
import { withBoundary } from '../common';
@@ -79,7 +79,7 @@ class ListingBulkActions extends Component {
data-automation-id="listing-bulk-actions"
>
- {MailPoet.I18n.t('selectBulkAction')}
+ {__('Select bulk action', 'mailpoet')}
diff --git a/mailpoet/assets/js/src/listing/filters.jsx b/mailpoet/assets/js/src/listing/filters.jsx
index 9e68ca867a..8c60f4b87b 100644
--- a/mailpoet/assets/js/src/listing/filters.jsx
+++ b/mailpoet/assets/js/src/listing/filters.jsx
@@ -1,9 +1,9 @@
import { Component } from 'react';
+import { __ } from '@wordpress/i18n';
import jQuery from 'jquery';
import PropTypes from 'prop-types';
import { Button } from 'common/button/button.tsx';
-import { MailPoet } from 'mailpoet';
import { Select } from 'common/form/select/select.tsx';
import { withBoundary } from '../common';
@@ -74,7 +74,7 @@ class ListingFilters extends Component {
onClick={this.handleEmptyTrash}
automationId="empty_trash"
>
- {MailPoet.I18n.t('emptyTrash')}
+ {__('Empty Trash', 'mailpoet')}
);
diff --git a/mailpoet/assets/js/src/listing/header.jsx b/mailpoet/assets/js/src/listing/header.jsx
index 565304baf3..d1483d96d4 100644
--- a/mailpoet/assets/js/src/listing/header.jsx
+++ b/mailpoet/assets/js/src/listing/header.jsx
@@ -1,8 +1,8 @@
import { Component } from 'react';
import PropTypes from 'prop-types';
+import { __ } from '@wordpress/i18n';
import { Checkbox } from 'common/form/checkbox/checkbox.tsx';
-import { MailPoet } from 'mailpoet';
import { ListingColumn } from './listing_column.jsx';
class ListingHeader extends Component {
@@ -37,7 +37,7 @@ class ListingHeader extends Component {
checkbox = (
{
if (
@@ -80,7 +79,7 @@ function TutorialIcon(): JSX.Element {
}}
>
- {MailPoet.I18n.t('topBarTutorial')}
+ {__('Tutorial', 'mailpoet')}
diff --git a/mailpoet/assets/js/src/newsletters/send/congratulate/success_pitch_mss.tsx b/mailpoet/assets/js/src/newsletters/send/congratulate/success_pitch_mss.tsx
index f221c2ff76..993f9a52cb 100644
--- a/mailpoet/assets/js/src/newsletters/send/congratulate/success_pitch_mss.tsx
+++ b/mailpoet/assets/js/src/newsletters/send/congratulate/success_pitch_mss.tsx
@@ -1,6 +1,5 @@
-import { __ } from '@wordpress/i18n';
+import { __, _x } from '@wordpress/i18n';
import { useState } from 'react';
-import { MailPoet } from 'mailpoet';
import ReactStringReplace from 'react-string-replace';
import { WelcomeWizardStepLayoutBody } from 'wizard/layout/step_layout_body.jsx';
@@ -63,14 +62,25 @@ export function PitchMss(props: Props): JSX.Element {
)}
- {MailPoet.I18n.t(
- props.subscribersCount < 1000
- ? 'congratulationsMSSPitchFreeSubtitle'
- : 'congratulationsMSSPitchNotFreeSubtitle',
- )}
+ {props.subscribersCount < 1000
+ ? _x(
+ 'Did you know? Users with 1,000 subscribers or less get the Starter plan for free.',
+ 'Promotion for our email sending service: Paragraph',
+ 'mailpoet',
+ )
+ : _x(
+ 'Starting at only $10 per month, MailPoet Business offers the following features',
+ 'Promotion for our email sending service: Paragraph',
+ 'mailpoet',
+ )}
{mtaLog.error.operation === 'send'
- ? MailPoet.I18n.t('mailerSendErrorNotice').replace('%1$s', mtaMethod)
- : MailPoet.I18n.t('mailerConnectionErrorNotice')}
+ ? __(
+ 'Sending has been paused due to a technical issue with %1$s',
+ 'mailpoet',
+ ).replace('%1$s', mtaMethod)
+ : __(
+ 'Sending is paused because the following connection issue prevents MailPoet from delivering emails',
+ 'mailpoet',
+ )}
: {message}