diff --git a/client/blocks/importer/wordpress/upgrade-plan/index.tsx b/client/blocks/importer/wordpress/upgrade-plan/index.tsx index 15e50bf4b703a1..6b9451f839e53b 100644 --- a/client/blocks/importer/wordpress/upgrade-plan/index.tsx +++ b/client/blocks/importer/wordpress/upgrade-plan/index.tsx @@ -3,7 +3,7 @@ import { isEnabled } from '@automattic/calypso-config'; import { getPlan, PLAN_BUSINESS } from '@automattic/calypso-products'; import { Button } from '@automattic/components'; import { SiteDetails } from '@automattic/data-stores'; -import { useIsEnglishLocale } from '@automattic/i18n-utils'; +import { useHasEnTranslation, useIsEnglishLocale } from '@automattic/i18n-utils'; import { Title, SubTitle, NextButton } from '@automattic/onboarding'; import { useTranslate } from 'i18n-calypso'; import React, { useEffect } from 'react'; @@ -30,6 +30,7 @@ export const UpgradePlan: React.FunctionComponent< Props > = ( props: Props ) => const translate = useTranslate(); const isEnglishLocale = useIsEnglishLocale(); const plan = getPlan( PLAN_BUSINESS ); + const hasEnTranslation = useHasEnTranslation(); const { site, navigateToVerifyEmailStep, @@ -116,6 +117,21 @@ export const UpgradePlan: React.FunctionComponent< Props > = ( props: Props ) => ); }; + const upgradeCtaCopy = hasEnTranslation( + 'Migrations are exclusive to the %(planName)s plan. Check out all its benefits, and upgrade to get started.' + ) + ? translate( + 'Migrations are exclusive to the %(planName)s plan. Check out all its benefits, and upgrade to get started.', + { + args: { + planName: plan?.getTitle() ?? '', + }, + } + ) + : translate( + 'Migrations are exclusive to the Creator plan. Check out all its benefits, and upgrade to get started.' + ); + return (
- { translate( - `Subscribe to the Creator plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.`, - { - args: { - importSiteHostName, - }, - } - ) } + { hasEnTranslation( + 'Subscribe to the %(planName)s plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.' + ) + ? translate( + 'Subscribe to the %(planName)s plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.', + { + args: { + importSiteHostName, + planName: getPlan( PLAN_BUSINESS )?.getTitle() ?? '', + }, + } + ) + : translate( + `Subscribe to the Creator plan now, and get a complimentary migration service (normally $500) to move %(importSiteHostName)s to WordPress.com.`, + { + args: { + importSiteHostName, + }, + } + ) }
{ translate(
diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-import-or-migrate/index.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-import-or-migrate/index.tsx
index 508805db084210..1706725db0976e 100644
--- a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-import-or-migrate/index.tsx
+++ b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-import-or-migrate/index.tsx
@@ -1,3 +1,5 @@
+import { getPlan, PLAN_BUSINESS } from '@automattic/calypso-products';
+import { useHasEnTranslation } from '@automattic/i18n-utils';
import {
NextButton,
StepContainer,
@@ -18,9 +20,14 @@ type SubmitDestination = 'import' | 'migrate' | 'upgrade';
const SiteMigrationImportOrMigrate: Step = function ( { navigation } ) {
const translate = useTranslate();
const site = useSite();
+ const hasEnTranslation = useHasEnTranslation();
const options = [
{
- label: translate( 'Everything (requires a Creator Plan)' ),
+ label: hasEnTranslation( 'Everything (requires a %(planName)s Plan)' )
+ ? translate( 'Everything (requires a %(planName)s Plan)', {
+ args: { planName: getPlan( PLAN_BUSINESS )?.getTitle() ?? '' },
+ } )
+ : translate( 'Everything (requires a Creator Plan)' ),
description: translate(
"All your site's content, themes, plugins, users, and customizations."
),
diff --git a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-upgrade-plan/index.tsx b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-upgrade-plan/index.tsx
index f6142f6bc74f63..0995086f72057d 100644
--- a/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-upgrade-plan/index.tsx
+++ b/client/landing/stepper/declarative-flow/internals/steps-repository/site-migration-upgrade-plan/index.tsx
@@ -4,6 +4,7 @@ import {
getPlan,
getPlanByPathSlug,
} from '@automattic/calypso-products';
+import { useHasEnTranslation } from '@automattic/i18n-utils';
import { StepContainer } from '@automattic/onboarding';
import { useTranslate } from 'i18n-calypso';
import { UpgradePlan } from 'calypso/blocks/importer/wordpress/upgrade-plan';
@@ -21,6 +22,7 @@ const SiteMigrationUpgradePlan: Step = function ( { navigation, data } ) {
const siteItem = useSite();
const siteSlug = useSiteSlug();
const translate = useTranslate();
+ const hasEnTranslation = useHasEnTranslation();
const queryParams = useQuery();
const hideFreeMigrationTrialForNonVerifiedEmail =
( data?.hideFreeMigrationTrialForNonVerifiedEmail as boolean | undefined ) ?? true;
@@ -102,9 +104,22 @@ const SiteMigrationUpgradePlan: Step = function ( { navigation, data } ) {