add missing i18n message to invites

This commit is contained in:
Jeremy Kauffman 2020-01-03 10:06:26 -05:00
parent c6d8e4c098
commit 1bff9845ae
2 changed files with 13 additions and 12 deletions

View file

@ -45,9 +45,7 @@
"Download": "Download",
"Content": "Content",
"What are you publishing?": "What are you publishing?",
"Read our": "Read our",
"FAQ": "FAQ",
"to learn more.": "to learn more.",
"Title": "Title",
"Titular Title": "Titular Title",
"Description": "Description",
@ -113,10 +111,6 @@
"Invite a Friend": "Invite a Friend",
"When your friends start using LBRY, the network gets stronger!": "When your friends start using LBRY, the network gets stronger!",
"Or share this link with your friends": "Or share this link with your friends",
"Earn": "Earn",
"rewards": "rewards",
"for inviting your friends.": "for inviting your friends.",
"to learn more about referrals": "to learn more about referrals",
"Power To The People": "Power To The People",
"LBRY is powered by the users. More users, more power… and with great power comes great responsibility.": "LBRY is powered by the users. More users, more power… and with great power comes great responsibility.",
"Checking your invite status": "Checking your invite status",
@ -947,5 +941,6 @@
"Sign In to lbry.tv to Earn Rewards": "Sign In to lbry.tv to Earn Rewards",
"Unlock Rewards": "Unlock Rewards",
"A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content and security updates.": "A lbry.tv account allows you to earn more than %credit_amount% in rewards, backup your data, and get content and security updates.",
"Deposit cannot be higher than your balance": "Deposit cannot be higher than your balance"
}
"Deposit cannot be higher than your balance": "Deposit cannot be higher than your balance",
"Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals.": "Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about referrals."
}

View file

@ -4,6 +4,7 @@ import Button from 'component/button';
import { Form, FormField } from 'component/common/form';
import CopyableText from 'component/copyableText';
import Card from 'component/common/card';
import I18nMessage from 'component/i18nMessage';
type FormState = {
email: string,
@ -66,10 +67,15 @@ class InviteNew extends React.PureComponent<Props, FormState> {
<CopyableText label={__('Or share this link with your friends')} copyable={referralLink} />
<p className="help">
{__('Earn')} <Button button="link" navigate="/$/rewards" label={__('rewards')} />{' '}
{__('for inviting your friends.')} {__('Read our')}{' '}
<Button button="link" label={__('FAQ')} href="https://lbry.com/faq/referrals" />{' '}
{__('to learn more about referrals')}.
<I18nMessage
tokens={{
rewards_link: <Button button="link" navigate="/$/rewards" label={__('rewards')} />,
referral_faq_link: <Button button="link" label={__('FAQ')} href="https://lbry.com/faq/referrals" />,
}}
>
Earn %rewards_link% for inviting your friends. Read our %referral_faq_link% to learn more about
referrals.
</I18nMessage>
</p>
</Form>
</React.Fragment>