i18n - fiat
This commit is contained in:
parent
1f4746ed89
commit
05d831b283
4 changed files with 59 additions and 27 deletions
|
@ -700,6 +700,7 @@
|
||||||
"Bid position must be a number.": "Bid position must be a number.",
|
"Bid position must be a number.": "Bid position must be a number.",
|
||||||
"Copy": "Copy",
|
"Copy": "Copy",
|
||||||
"Copy Link": "Copy Link",
|
"Copy Link": "Copy Link",
|
||||||
|
"Copy RSS URL": "Copy RSS URL",
|
||||||
"Text copied": "Text copied",
|
"Text copied": "Text copied",
|
||||||
"Rewards Disabled": "Rewards Disabled",
|
"Rewards Disabled": "Rewards Disabled",
|
||||||
"Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%.": "Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%.",
|
"Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%.": "Wallet servers are used to relay data to and from the LBRY blockchain. They also determine what content shows in trending or is blocked. %learn_more%.",
|
||||||
|
@ -1195,7 +1196,12 @@
|
||||||
"Boost your content": "Boost your content",
|
"Boost your content": "Boost your content",
|
||||||
"Boost This Video": "Boost This Video",
|
"Boost This Video": "Boost This Video",
|
||||||
"Boost This Content": "Boost This Content",
|
"Boost This Content": "Boost This Content",
|
||||||
|
"Send a $%displayAmount% Tip": "Send a $%displayAmount% Tip",
|
||||||
|
"Send a %displayAmount% LBC Tip": "Send a %displayAmount% LBC Tip",
|
||||||
"Boost": "Boost",
|
"Boost": "Boost",
|
||||||
|
"Boosting": "Boosting",
|
||||||
|
"Tipping LBC": "Tipping LBC",
|
||||||
|
"Tipping Fiat (USD):": "Tipping Fiat (USD)",
|
||||||
"Send Revocable Support": "Send Revocable Support",
|
"Send Revocable Support": "Send Revocable Support",
|
||||||
"Send a %amount% Tip": "Send a %amount% Tip",
|
"Send a %amount% Tip": "Send a %amount% Tip",
|
||||||
"Channel to show support as": "Channel to show support as",
|
"Channel to show support as": "Channel to show support as",
|
||||||
|
@ -2007,5 +2013,25 @@
|
||||||
"See All": "See All",
|
"See All": "See All",
|
||||||
"Supporting content requires %lbc%": "Supporting content requires %lbc%",
|
"Supporting content requires %lbc%": "Supporting content requires %lbc%",
|
||||||
"With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to see.": "With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to see.",
|
"With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to see.": "With %lbc%, you can send tips to your favorite creators, or help boost their content for more people to see.",
|
||||||
|
"This refundable boost will improve the discoverability of this content while active.": "This refundable boost will improve the discoverability of this content while active.",
|
||||||
|
"Show this channel your appreciation by sending a donation of cash in USD.": "Show this channel your appreciation by sending a donation of cash in USD.",
|
||||||
|
"Show this channel your appreciation by sending a donation of Credits.": "Show this channel your appreciation by sending a donation of Credits.",
|
||||||
|
"Add card to tip creators in USD": "Add card to tip creators in USD",
|
||||||
|
"Connect a bank account": "Connect a bank account",
|
||||||
|
"Add card to tip creators in USD:": "Add card to tip creators in USD",
|
||||||
|
"Getting your bank account connection status...": "Getting your bank account connection status...",
|
||||||
|
"Connect your bank account to Odysee to receive donations directly from users": "Connect your bank account to Odysee to receive donations directly from users",
|
||||||
|
"Connect your bank account": "Connect your bank account",
|
||||||
|
"Manage Card": "Manage Card",
|
||||||
|
"Congratulations! Your account has been connected with Odysee.": "Congratulations! Your account has been connected with Odysee.",
|
||||||
|
"Your account balance is %balance% USD. Functionality to view your transactions and withdraw your balance will be landing shortly.": "Your account balance is %balance% USD. Functionality to view your transactions and withdraw your balance will be landing shortly.",
|
||||||
|
"Your account balance is $0 USD. When you receive a tip you will see it here.": "Your account balance is $0 USD. When you receive a tip you will see it here.",
|
||||||
|
"Congratulations, you have already begun receiving tips on Odysee!": "Congratulations, you have already begun receiving tips on Odysee!",
|
||||||
|
"Your pending account balance is %balance% USD. Functionality to view and receive your transactions will land soon.": "Your pending account balance is %balance% USD. Functionality to view and receive your transactions will land soon.",
|
||||||
|
"Connect your bank account to be able to cash your pending balance out to your account.": "Connect your bank account to be able to cash your pending balance out to your account.",
|
||||||
|
"You sent $%amount% as a tip to %tipChannelName%, I'm sure they appreciate it!": "You sent $%amount% as a tip to %tipChannelName%, I'm sure they appreciate it!",
|
||||||
|
"Tip Creators": "Tip Creators",
|
||||||
|
"Only select creators can receive tips at this time": "Only select creators can receive tips at this time",
|
||||||
|
"The payment will be made from your saved card": "The payment will be made from your saved card",
|
||||||
"--end--": "--end--"
|
"--end--": "--end--"
|
||||||
}
|
}
|
||||||
|
|
|
@ -163,7 +163,7 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
||||||
if (user.fiat_enabled) {
|
if (user.fiat_enabled) {
|
||||||
return (
|
return (
|
||||||
<Card
|
<Card
|
||||||
title={<div className="table__header-text">{__(`Connect A Bank Account`)}</div>}
|
title={<div className="table__header-text">{__('Connect a bank account')}</div>}
|
||||||
isBodyList
|
isBodyList
|
||||||
body={
|
body={
|
||||||
<div>
|
<div>
|
||||||
|
@ -172,7 +172,7 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
||||||
<div className="card__body-actions">
|
<div className="card__body-actions">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h3>Getting your Bank Account Connection status...</h3>
|
<h3>{__('Getting your bank account connection status...')}</h3>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -182,11 +182,11 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
||||||
<div className="card__body-actions">
|
<div className="card__body-actions">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h3>Connect your Bank Account to Odysee to receive donations directly from users</h3>
|
<h3>{__('Connect your bank account to Odysee to receive donations directly from users')}</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<a href={stripeConnectionUrl}>
|
<a href={stripeConnectionUrl}>
|
||||||
<Button button="secondary" label={__('Connect Your Bank Account')} icon={ICONS.FINANCE} />
|
<Button button="secondary" label={__('Connect your bank account')} icon={ICONS.FINANCE} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -197,19 +197,21 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
||||||
<div className="card__body-actions">
|
<div className="card__body-actions">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h3>Congratulations! Your account has been connected with Odysee.</h3>
|
<h3>{__('Congratulations! Your account has been connected with Odysee.')}</h3>
|
||||||
{unpaidBalance > 0 ? (
|
{unpaidBalance > 0 ? (
|
||||||
<div>
|
<div>
|
||||||
<br />
|
<br />
|
||||||
<h3>
|
<h3>
|
||||||
Your account balance is ${unpaidBalance / 100} USD. Functionality to view your transactions
|
{__(
|
||||||
and withdraw your balance will be landing shortly.
|
'Your account balance is %balance% USD. Functionality to view your transactions and withdraw your balance will be landing shortly.',
|
||||||
|
{ balance: unpaidBalance / 100 }
|
||||||
|
)}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<div>
|
<div>
|
||||||
<br />
|
<br />
|
||||||
<h3>Your account balance is $0 USD. When you receive a tip you will see it here.</h3>
|
<h3>{__('Your account balance is $0 USD. When you receive a tip you will see it here.')}</h3>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
@ -220,21 +222,25 @@ class StripeAccountConnection extends React.Component<Props, State> {
|
||||||
<div className="card__body-actions">
|
<div className="card__body-actions">
|
||||||
<div>
|
<div>
|
||||||
<div>
|
<div>
|
||||||
<h3>Congratulations, you have already begun receiving tips on Odysee!</h3>
|
<h3>{__('Congratulations, you have already begun receiving tips on Odysee!')}</h3>
|
||||||
<div>
|
<div>
|
||||||
<br />
|
<br />
|
||||||
<h3>
|
<h3>
|
||||||
Your pending account balance is ${unpaidBalance / 100} USD. Functionality to view and receive
|
{__(
|
||||||
your transactions will land soon.
|
'Your pending account balance is %balance% USD. Functionality to view and receive your transactions will land soon.',
|
||||||
|
{ balance: unpaidBalance / 100 }
|
||||||
|
)}
|
||||||
</h3>
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<br />
|
<br />
|
||||||
<div>
|
<div>
|
||||||
<h3>Connect your Bank Account to be able to cash your pending balance out to your account.</h3>
|
<h3>
|
||||||
|
{__('Connect your bank account to be able to cash your pending balance out to your account.')}
|
||||||
|
</h3>
|
||||||
</div>
|
</div>
|
||||||
<div className="section__actions">
|
<div className="section__actions">
|
||||||
<a href={stripeConnectionUrl}>
|
<a href={stripeConnectionUrl}>
|
||||||
<Button button="secondary" label={__('Connect Your Bank Account')} icon={ICONS.FINANCE} />
|
<Button button="secondary" label={__('Connect your bank account')} icon={ICONS.FINANCE} />
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -71,7 +71,7 @@ const WalletBalance = (props: Props) => {
|
||||||
Your total balance. All of this is yours, but some %lbc% is in use on channels and content right now.
|
Your total balance. All of this is yours, but some %lbc% is in use on channels and content right now.
|
||||||
</I18nMessage>
|
</I18nMessage>
|
||||||
) : (
|
) : (
|
||||||
<span>{__('Your total balance')}</span>
|
<span>{__('Your total balance.')}</span>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
actions={
|
actions={
|
||||||
|
|
|
@ -152,16 +152,16 @@ function WalletSendTip(props: Props) {
|
||||||
let iconToUse, explainerText;
|
let iconToUse, explainerText;
|
||||||
if (activeTab === TAB_BOOST) {
|
if (activeTab === TAB_BOOST) {
|
||||||
iconToUse = ICONS.LBC;
|
iconToUse = ICONS.LBC;
|
||||||
explainerText = 'This refundable boost will improve the discoverability of this content while active. ';
|
explainerText = __('This refundable boost will improve the discoverability of this content while active.');
|
||||||
} else if (activeTab === TAB_FIAT) {
|
} else if (activeTab === TAB_FIAT) {
|
||||||
iconToUse = ICONS.FINANCE;
|
iconToUse = ICONS.FINANCE;
|
||||||
explainerText = 'Show this channel your appreciation by sending a donation of cash in USD. ';
|
explainerText = __('Show this channel your appreciation by sending a donation of cash in USD.');
|
||||||
// if (!hasCardSaved) {
|
// if (!hasCardSaved) {
|
||||||
// explainerText += 'You must add a card to use this functionality. ';
|
// explainerText += __('You must add a card to use this functionality.');
|
||||||
// }
|
// }
|
||||||
} else if (activeTab === TAB_LBC) {
|
} else if (activeTab === TAB_LBC) {
|
||||||
iconToUse = ICONS.LBC;
|
iconToUse = ICONS.LBC;
|
||||||
explainerText = 'Show this channel your appreciation by sending a donation of Credits. ';
|
explainerText = __('Show this channel your appreciation by sending a donation of Credits.');
|
||||||
}
|
}
|
||||||
|
|
||||||
const isSupport = claimIsMine || activeTab === TAB_BOOST;
|
const isSupport = claimIsMine || activeTab === TAB_BOOST;
|
||||||
|
@ -289,11 +289,11 @@ function WalletSendTip(props: Props) {
|
||||||
const displayAmount = !isNan(tipAmount) ? tipAmount : '';
|
const displayAmount = !isNan(tipAmount) ? tipAmount : '';
|
||||||
|
|
||||||
if (activeTab === TAB_BOOST) {
|
if (activeTab === TAB_BOOST) {
|
||||||
return 'Boost This Content';
|
return __('Boost This Content');
|
||||||
} else if (activeTab === TAB_FIAT) {
|
} else if (activeTab === TAB_FIAT) {
|
||||||
return 'Send a $' + displayAmount + ' Tip';
|
return __('Send a $%displayAmount% Tip', { displayAmount });
|
||||||
} else if (activeTab === TAB_LBC) {
|
} else if (activeTab === TAB_LBC) {
|
||||||
return 'Send a ' + displayAmount + ' LBC Tip';
|
return __('Send a %displayAmount% LBC Tip', { displayAmount });
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -305,11 +305,11 @@ function WalletSendTip(props: Props) {
|
||||||
|
|
||||||
function setConfirmLabel() {
|
function setConfirmLabel() {
|
||||||
if (activeTab === TAB_LBC) {
|
if (activeTab === TAB_LBC) {
|
||||||
return 'Tipping LBC';
|
return __('Tipping LBC');
|
||||||
} else if (activeTab === TAB_FIAT) {
|
} else if (activeTab === TAB_FIAT) {
|
||||||
return 'Tipping Fiat (USD)';
|
return __('Tipping Fiat (USD)');
|
||||||
} else if (activeTab === TAB_BOOST) {
|
} else if (activeTab === TAB_BOOST) {
|
||||||
return 'Boosting';
|
return __('Boosting');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -436,7 +436,7 @@ function WalletSendTip(props: Props) {
|
||||||
{activeTab === TAB_FIAT && !hasCardSaved && (
|
{activeTab === TAB_FIAT && !hasCardSaved && (
|
||||||
<h3 className="add-card-prompt">
|
<h3 className="add-card-prompt">
|
||||||
<Button navigate={`/$/${PAGES.SETTINGS_STRIPE_CARD}`} label={__('Add a Card')} button="link" /> To
|
<Button navigate={`/$/${PAGES.SETTINGS_STRIPE_CARD}`} label={__('Add a Card')} button="link" /> To
|
||||||
Tip Creators
|
{__('Tip Creators')}
|
||||||
</h3>
|
</h3>
|
||||||
)}
|
)}
|
||||||
|
|
||||||
|
@ -534,9 +534,9 @@ function WalletSendTip(props: Props) {
|
||||||
{activeTab !== TAB_FIAT ? (
|
{activeTab !== TAB_FIAT ? (
|
||||||
<WalletSpendableBalanceHelp />
|
<WalletSpendableBalanceHelp />
|
||||||
) : !canReceiveFiatTip ? (
|
) : !canReceiveFiatTip ? (
|
||||||
<div className="help">Only select creators can receive tips at this time</div>
|
<div className="help">{__('Only select creators can receive tips at this time')}</div>
|
||||||
) : (
|
) : (
|
||||||
<div className="help">The payment will be made from your saved card</div>
|
<div className="help">{__('The payment will be made from your saved card')}</div>
|
||||||
)}
|
)}
|
||||||
</>
|
</>
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue