Get notified when someone replies to your comment
+{t('Get notified when someone replies to your comment')}
Unsubscribing from emails will not cancel your paid subscription to {site?.title}
+{t('Unsubscribing from emails will not cancel your paid subscription to {{title}}', {title: site?.title})}
); } return null; @@ -151,7 +154,7 @@ export default function NewsletterManagement({ isCommentsEnabled, enableCommentNotifications }) { - const {brandColor, onAction, member, site} = useContext(AppContext); + const {brandColor, onAction, member, site, t} = useContext(AppContext); const isDisabled = !subscribedNewsletters?.length && ((isCommentsEnabled && !enableCommentNotifications) || !isCommentsEnabled); const EmptyNotification = () => { return null; @@ -192,7 +195,7 @@ export default function NewsletterManagement({ disabled={isDisabled} brandColor={brandColor} isPrimary={false} - label='Unsubscribe from all emails' + label={t('Unsubscribe from all emails')} isDestructive={true} style={{width: '100%'}} dataTestId="unsubscribe-from-all-emails" @@ -201,12 +204,12 @@ export default function NewsletterManagement({Update your preferences
+ :{t('Update your preferences')}
}{member.email}
If you cancel your subscription now, you will continue to have access until {getDateString(subscription.current_period_end)}.
- You're not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address. + {t('You\'re not receiving emails because you either marked a recent message as spam, or because messages could not be delivered to your provided email address.')}
Your input helps shape what gets published.
+{t('Your input helps shape what gets published.')}
Choose your newsletters
+{t('Choose your newsletters')}
- After a free trial ends, you will be charged the regular price for the tier you’ve chosen. You can always cancel before then. + {t('After a free trial ends, you will be charged the regular price for the tier you\'ve chosen. You can always cancel before then.')}
); } @@ -468,19 +468,19 @@ class SignupPage extends React.Component { } renderLoginMessage() { - const {brandColor, onAction} = this.context; + const {brandColor, onAction, t} = this.context; return (We couldn't unsubscribe you as the email address was not found. Please contact the site owner.
+{t('We couldn\'t unsubscribe you as the email address was not found. Please contact the site owner.')}
{member?.email} will no longer receive this newsletter.
Didn't mean to do this? Manage your preferences @@ -182,7 +182,7 @@ export default function UnsubscribePage() { setSubscribedNewsletters([]); onAction('showPopupNotification', { action: 'updated:success', - message: `Email preference updated.` + message: t(`Email preference updated.`) }); const updatedMember = await api.member.updateNewsletters({uuid: pageData.uuid, newsletters: [], enableCommentNotifications: false}); setMember(updatedMember);