Update subscribers count translation strings
[MAILPOET-3972]
This commit is contained in:
committed by
Veljko V
parent
e77cc98276
commit
32c971aaa8
@@ -1,6 +1,7 @@
|
||||
import React, { useState } from 'react';
|
||||
import MailPoet from 'mailpoet';
|
||||
import Button from 'common/button/button';
|
||||
import ReactStringReplace from 'react-string-replace';
|
||||
import Notice from '../notices/notice';
|
||||
|
||||
type Props = {
|
||||
@@ -29,9 +30,17 @@ export function SubscribersCacheMessage({ cacheCalculation }: Props): JSX.Elemen
|
||||
|
||||
return (
|
||||
<div className="mailpoet-subscribers-cache-notice">
|
||||
{MailPoet.I18n.t('subscribersCountWereCalculated')}
|
||||
|
||||
<abbr title={cacheCalculation}>{`${String(minutes)} ${String(MailPoet.I18n.t('subscribersMinutesAgo'))}`}</abbr>
|
||||
|
||||
{ReactStringReplace(
|
||||
MailPoet.I18n.t('subscribersCountWereCalculatedWithMinutesAgo'),
|
||||
/<abbr>(.*?)<\/abbr>/,
|
||||
(match) => (
|
||||
<abbr title={cacheCalculation}>
|
||||
{match.replace(/(\{\$mins\}|\$mins)/, String(minutes))}
|
||||
</abbr>
|
||||
)
|
||||
)}
|
||||
|
||||
<Button
|
||||
className="mailpoet-subscribers-cache-notice-button"
|
||||
type="button"
|
||||
|
@@ -240,8 +240,7 @@
|
||||
'filterConnectAnd': _x('and', 'Dynamic segment creation: The user can see logical operator between condition when has more than one'),
|
||||
'filterConnectOr': _x('or', 'Dynamic segment creation: The user can see logical operator between condition when has more than one'),
|
||||
|
||||
'subscribersCountWereCalculated': __('Lists and Segments subscribers counts were calculated'),
|
||||
'subscribersMinutesAgo': __('minutes ago'),
|
||||
'subscribersCountWereCalculatedWithMinutesAgo': __('Lists and Segments subscribers counts were calculated <abbr>{$mins} minutes ago</abbr>'),
|
||||
'recalculateNow': __('Recalculate now'),
|
||||
'privacyProtectionNotice': __('Due to email privacy protections, some opens may not be tracked. Consider using a different engagement metric.'),
|
||||
}) %>
|
||||
|
@@ -162,8 +162,7 @@
|
||||
'tooltipAverage': __('Read 20% or fewer of sent emails'),
|
||||
'engagementScoreDescription': __('Average percent of emails subscribers read in the last year'),
|
||||
|
||||
'subscribersCountWereCalculated': __('Lists and Segments subscribers counts were calculated'),
|
||||
'subscribersMinutesAgo': __('minutes ago'),
|
||||
'subscribersCountWereCalculatedWithMinutesAgo': __('Lists and Segments subscribers counts were calculated <abbr>{$mins} minutes ago</abbr>'),
|
||||
'recalculateNow': __('Recalculate now'),
|
||||
}) %>
|
||||
<% endblock %>
|
||||
|
Reference in New Issue
Block a user