diff --git a/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/attach-launch-sidebar.tsx b/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/attach-launch-sidebar.tsx index a7026ac9b554ca..6186ffcce0e4ce 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/attach-launch-sidebar.tsx +++ b/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/attach-launch-sidebar.tsx @@ -6,6 +6,7 @@ import { useDispatch, useSelect } from '@wordpress/data'; import { registerPlugin as originalRegisterPlugin, PluginSettings } from '@wordpress/plugins'; import { doAction, hasAction } from '@wordpress/hooks'; import { LaunchContext } from '@automattic/launch'; +import { I18nProvider } from '@automattic/react-i18n'; /** * Internal dependencies @@ -41,9 +42,11 @@ registerPlugin( 'a8c-editor-site-launch', { } return ( - - - + + + + + ); }, } ); diff --git a/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/launch-menu/index.tsx b/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/launch-menu/index.tsx index e76f66f1d7db77..188f659d59bc68 100644 --- a/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/launch-menu/index.tsx +++ b/apps/editing-toolkit/editing-toolkit-plugin/editor-site-launch/src/launch-menu/index.tsx @@ -3,7 +3,7 @@ */ import * as React from 'react'; import { useSelect, useDispatch } from '@wordpress/data'; -import { __ } from '@wordpress/i18n'; +import { useI18n } from '@automattic/react-i18n'; /** * Internal dependencies @@ -19,6 +19,7 @@ interface Props { } const LaunchMenu: React.FunctionComponent< Props > = ( { onMenuItemClick } ) => { + const { __ } = useI18n(); const { step: currentStep } = useSelect( ( select ) => select( LAUNCH_STORE ).getState() ); const LaunchStep = useSelect( ( select ) => select( LAUNCH_STORE ).getLaunchStep() ); const LaunchSequence = useSelect( ( select ) => select( LAUNCH_STORE ).getLaunchSequence() );