Skip to content

Commit

Permalink
Update launchpad free/build/write flow sidebar copies (Automattic#74426)
Browse files Browse the repository at this point in the history
* Update launchpad free/build/write flow sidebar copies

* Update Launchpad translations test
  • Loading branch information
agrullon95 authored Mar 15, 2023
1 parent 4581029 commit 53fca88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ describe( 'Translations', () => {

const freeFlowTranslations = getLaunchpadTranslations( 'free' );
expect( freeFlowTranslations.flowName ).toEqual( 'Free Website' );
expect( freeFlowTranslations.title ).toEqual( "Your new site's ready!" );
expect( freeFlowTranslations.launchTitle ).toEqual( "Your new site's ready!" );
expect( freeFlowTranslations.title ).toEqual( "Let's get ready to launch!" );
expect( freeFlowTranslations.launchTitle ).toEqual( "Let's get ready to launch!" );
} );
} );

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ import {
NEWSLETTER_FLOW,
VIDEOPRESS_FLOW,
FREE_FLOW,
WRITE_FLOW,
BUILD_FLOW,
} from '@automattic/onboarding';
import { translate } from 'i18n-calypso';
import { TranslatedLaunchpadStrings } from './types';
Expand Down Expand Up @@ -34,17 +36,20 @@ export function getLaunchpadTranslations( flow: string | null ): TranslatedLaunc
break;
case FREE_FLOW:
translatedStrings.flowName = translate( 'Free Website' );
translatedStrings.title = translate( "Your new site's ready!" );
translatedStrings.launchTitle = translate( "Your new site's ready!" );
translatedStrings.subtitle = translate(
'Launch it to the world. Or add some finishing touches. (You can come back to make changes any time.)'
);
translatedStrings.title = translate( "Let's get ready to launch!" );
translatedStrings.launchTitle = translate( "Let's get ready to launch!" );
translatedStrings.subtitle = translate( "Here's what to do next." );
break;
case VIDEOPRESS_FLOW:
translatedStrings.flowName = translate( 'Video' );
translatedStrings.title = translate( 'Your site is almost ready!' );
translatedStrings.launchTitle = translate( 'Your site is almost ready!' );
break;
case WRITE_FLOW:
case BUILD_FLOW:
translatedStrings.title = translate( "Let's get ready to launch!" );
translatedStrings.launchTitle = translate( "Let's get ready to launch!" );
translatedStrings.subtitle = translate( "Here's what to do next." );
}

return translatedStrings;
Expand Down

0 comments on commit 53fca88

Please sign in to comment.