Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add copy for Bi Sky design selection + free plan modal to get translation package in time #99124

Open
wants to merge 2 commits into
base: trunk
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions client/landing/stepper/declarative-flow/internals/index.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import { isWooExpressFlow } from '@automattic/onboarding';
import { Button } from '@wordpress/components';
import { useSelect } from '@wordpress/data';
import { useI18n } from '@wordpress/react-i18n';
import { useTranslate } from 'i18n-calypso';
import React, { lazy, useEffect } from 'react';
import Modal from 'react-modal';
import { generatePath, useParams } from 'react-router';
Expand Down Expand Up @@ -90,6 +92,28 @@ export const FlowRenderer: React.FC< { flow: Flow; steps: readonly StepperStep[]
const { __ } = useI18n();
useSaveQueryParams();

const translate = useTranslate();
const __copyToTranslate = [
// new design selection strings
__( 'Start with a theme' ),
__( 'Choose a professionally designed theme and make it yours.' ),
translate( 'Create with AI {{small}}(BETA){{/small}}', {
components: { small: <small></small> },
} ),
__( 'Use our AI Website Builder to quickly and easily create the site of your dreams.' ),

// new free plan modal
__( 'Our AI Website Builder is only available with a paid plan' ),
translate(
`Build your site quickly with our AI Website Builder or {{link}}start with a free plan{{/link}}.`,
{
components: {
link: <Button />,
},
}
),
];

const { site, siteSlugOrId } = useSiteData();

// Ensure that the selected site is fetched, if available. This is used for event tracking purposes.
Expand Down
Loading