diff --git a/packages/mask/shared-ui/locales/en-US.json b/packages/mask/shared-ui/locales/en-US.json index 7a684617bab1..131589156d08 100644 --- a/packages/mask/shared-ui/locales/en-US.json +++ b/packages/mask/shared-ui/locales/en-US.json @@ -88,7 +88,8 @@ "setup_guide_connect_auto": "Connect", "setup_guide_connect_failed": "Re-Connect", "user_guide_tip_connected": "You have connected to this account successfully.", - "setup_guide_say_hello_content": "Hellow Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. Follow @realMaskNetwork to explore Web 3.0.", + "setup_guide_say_hello_content": "Hello Mask world. This is my first encrypted message. Install https://mask.io to send me encrypted post. ", + "setup_guide_say_hello_follow": "Follow {{account}} to explore Web 3.0.", "setup_guide_pin_tip_0": "Don't forget to pin Mask Network in your browser toolbar to access web 3.0 easily.", "setup_guide_pin_tip_1": "Click on ", "setup_guide_pin_tip_1_s": " at top right of your browser.", diff --git a/packages/mask/src/components/InjectedComponents/SetupGuide.tsx b/packages/mask/src/components/InjectedComponents/SetupGuide.tsx index f10df3649b2b..033f2076367f 100644 --- a/packages/mask/src/components/InjectedComponents/SetupGuide.tsx +++ b/packages/mask/src/components/InjectedComponents/SetupGuide.tsx @@ -477,7 +477,14 @@ function SetupGuideUI(props: SetupGuideUIProps) { } const onCreate = async () => { - ui.automation.maskCompositionDialog?.open?.(makeTypedMessageText(t('setup_guide_say_hello_content')), { + let content = t('setup_guide_say_hello_content') + if (ui.networkIdentifier === 'twitter.com') { + content += t('setup_guide_say_hello_follow', { account: '@realMaskNetwork' }) + } else if (ui.networkIdentifier === 'facebook.com') { + content += t('setup_guide_say_hello_follow', { account: '@masknetwork' }) + } + + ui.automation.maskCompositionDialog?.open?.(makeTypedMessageText(content), { target: 'Everyone', }) } diff --git a/packages/mask/src/social-network-adaptor/twitter.com/injection/PostDialogHint.tsx b/packages/mask/src/social-network-adaptor/twitter.com/injection/PostDialogHint.tsx index 243bc217e886..532be145b54c 100644 --- a/packages/mask/src/social-network-adaptor/twitter.com/injection/PostDialogHint.tsx +++ b/packages/mask/src/social-network-adaptor/twitter.com/injection/PostDialogHint.tsx @@ -52,7 +52,10 @@ function PostDialogHintAtTwitter({ reason }: { reason: 'timeline' | 'popup' }) { const onHintButtonClicked = useCallback(() => { const content = sayHelloShowed[twitterBase.networkIdentifier].value ? undefined - : makeTypedMessageText(t('setup_guide_say_hello_content')) + : makeTypedMessageText( + t('setup_guide_say_hello_content') + + t('setup_guide_say_hello_follow', { account: '@realMaskNetwork' }), + ) MaskMessages.events.requestComposition.sendToLocal({ reason, open: true, content }) sayHelloShowed[twitterBase.networkIdentifier].value = true }, [reason])