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

Converts domain names to logmein links #54595

Merged
merged 1 commit into from
Jul 26, 2021
Merged
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
16 changes: 10 additions & 6 deletions client/landing/domains/registrant-verification/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,17 +54,20 @@ class RegistrantVerificationPage extends Component {
getVerificationSuccessState = ( domains ) => {
const { translate } = this.props;

const verifiedDomains = domains.join( ', ' );
const DomainLinks = domains.map( ( domain, index ) => [
index > 0 && ', ',
<a key={ domain } href={ `https://${ domain }?logmein=1` }>
{ domain }
</a>,
] );

return {
title: translate( 'Success!' ),
message: translate(
'Thank your for verifying your contact information for:{{br /}}{{strong}}%(domain)s{{/strong}}.',
'Thank your for verifying your contact information for:{{br /}}{{strong}}{{domainLinks /}}{{/strong}}.',
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🆗 This change will be queued for retranslation. We'll use the existing translations in the meantime.

{
args: {
domain: verifiedDomains,
},
components: {
domainLinks: DomainLinks,
strong: <strong />,
br: <br />,
},
Expand Down Expand Up @@ -130,7 +133,7 @@ class RegistrantVerificationPage extends Component {
return {
title: translate( 'Already verified.' ),
message: translate(
"You've already verified {{strong}}%(email)s{{/strong}} for:{{br /}}{{strong}}%(domain)s{{/strong}}.",
"You've already verified {{strong}}%(email)s{{/strong}} for:{{br /}}{{strong}}{{a}}%(domain)s{{/a}}{{/strong}}.",
{
args: {
email: email,
Expand All @@ -139,6 +142,7 @@ class RegistrantVerificationPage extends Component {
components: {
strong: <strong />,
br: <br />,
a: <a href={ `https://${ domain }?logmein=1` } />,
},
}
),
Expand Down