Fix split sentence: "By continuing, you accept the"

#4239
This commit is contained in:
infiinte-persistence 2020-05-26 12:10:05 +08:00 committed by Sean Yesmunt
parent 8bd129799e
commit a37b00e774
2 changed files with 11 additions and 3 deletions

View file

@ -77,7 +77,7 @@
"Turkish": "Turkish",
"Polish": "Polish",
"Malay": "Malay",
"By continuing, you accept the": "By continuing, you accept the",
"By continuing, you accept the %lbry_terms_of_service%.": "By continuing, you accept the %lbry_terms_of_service%.",
"LBRY Terms of Service": "LBRY Terms of Service",
"Choose File": "Choose File",
"No File Chosen": "No File Chosen",

View file

@ -22,6 +22,7 @@ import PublishAdditionalOptions from 'component/publishAdditionalOptions';
import PublishFormErrors from 'component/publishFormErrors';
import SelectThumbnail from 'component/selectThumbnail';
import Card from 'component/common/card';
import I18nMessage from 'component/i18nMessage';
type Props = {
disabled: boolean,
@ -208,8 +209,15 @@ function PublishForm(props: Props) {
<Button button="link" onClick={clearPublish} label={__('Cancel')} />
</div>
<p className="help">
{__('By continuing, you accept the')}{' '}
<Button button="link" href="https://www.lbry.com/termsofservice" label={__('LBRY Terms of Service')} />.
<I18nMessage
tokens={{
lbry_terms_of_service: (
<Button button="link" href="https://www.lbry.com/termsofservice" label={__('LBRY Terms of Service')} />
),
}}
>
By continuing, you accept the %lbry_terms_of_service%.
</I18nMessage>
</p>
</section>
</div>