diff --git a/client/landing/subscriptions/hooks/use-subheader-text.tsx b/client/landing/subscriptions/hooks/use-subheader-text.tsx index 9b175d2952f265..b14766f2675977 100644 --- a/client/landing/subscriptions/hooks/use-subheader-text.tsx +++ b/client/landing/subscriptions/hooks/use-subheader-text.tsx @@ -1,47 +1,27 @@ import { SubscriptionManager } from '@automattic/data-stores'; -import { useLocale } from '@automattic/i18n-utils'; -import { useI18n } from '@wordpress/react-i18n'; import { useTranslate } from 'i18n-calypso'; import { useMemo } from 'react'; const useSubheaderText = () => { const emailAddress = SubscriptionManager.useSubscriberEmailAddress(); const translate = useTranslate(); - const locale = useLocale(); - const { hasTranslation } = useI18n(); + return useMemo( () => { if ( emailAddress ) { - return locale.startsWith( 'en' ) || - hasTranslation( - 'Manage WordPress.com sites and newsletters you’ve subscribed to with {{span}}%(emailAddress)s{{/span}}.' - ) - ? translate( - 'Manage WordPress.com sites and newsletters you’ve subscribed to with {{span}}%(emailAddress)s{{/span}}.', - { - args: { - emailAddress: emailAddress, - }, - components: { - span: , - }, - } - ) - : translate( - "Manage the WordPress.com newsletter and blogs you've subscribed to with {{span}}%(emailAddress)s{{/span}}.", - { - args: { - emailAddress: emailAddress, - }, - components: { - span: , - }, - } - ); + return translate( + 'Manage WordPress.com sites and newsletters you’ve subscribed to with {{span}}%(emailAddress)s{{/span}}.', + { + args: { + emailAddress: emailAddress, + }, + components: { + span: , + }, + } + ); } - return locale.startsWith( 'en' ) || - hasTranslation( 'Manage your WordPress.com site and newsletter subscriptions.' ) - ? translate( 'Manage your WordPress.com site and newsletter subscriptions.' ) - : translate( 'Manage your WordPress.com blog and newsletter subscriptions.' ); + + return translate( 'Manage your WordPress.com site and newsletter subscriptions.' ); }, [ emailAddress, translate ] ); };