potential language changes

This commit is contained in:
Jeremy Kauffman 2021-01-19 18:00:52 -05:00 committed by Sean Yesmunt
parent 5420a6a887
commit 79a85db7e4
2 changed files with 25 additions and 9 deletions

View file

@ -1558,5 +1558,16 @@
"Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could take some time. %now%%help%": "Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could take some time. %now%%help%", "Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could take some time. %now%%help%": "Your wallet has a lot of change lying around. Consolidating will speed up your transactions. This could take some time. %now%%help%",
"Consolidating": "Consolidating", "Consolidating": "Consolidating",
"Theater mode": "Theater mode", "Theater mode": "Theater mode",
"View more": "View more",
"Your total balance. Some of the %lbc% is in use on your channels and content right now.": "Your total balance. Some of the %lbc% is in use on your channels and content right now.",
"%lbc_amount% available balance": "%lbc_amount% available balance",
"%lbc_amount% currently in use": "%lbc_amount% currently in use",
"View less": "View less",
"Your total balance.": "Your total balance.",
"%lbc_amount% immediately spendable": "%lbc_amount% immediately spendable",
"%lbc_amount% contributing to content": "%lbc_amount% contributing to content",
"...earned from others (unlock to spend)": "...earned from others (unlock to spend)",
"...on initial publishes (delete or edit past content to spend)": "...on initial publishes (delete or edit past content to spend)",
"...supporting content (delete supports to spend)": "...supporting content (delete supports to spend)",
"--end--": "--end--" "--end--": "--end--"
} }

View file

@ -48,6 +48,7 @@ const WalletBalance = (props: Props) => {
const { other: otherCount = 0 } = utxoCounts || {}; const { other: otherCount = 0 } = utxoCounts || {};
const totalBalance = balance + tipsBalance + supportsBalance + claimsBalance; const totalBalance = balance + tipsBalance + supportsBalance + claimsBalance;
const totalLocked = tipsBalance + claimsBalance + supportsBalance;
React.useEffect(() => { React.useEffect(() => {
if (balance > LARGE_WALLET_BALANCE) { if (balance > LARGE_WALLET_BALANCE) {
@ -59,25 +60,29 @@ const WalletBalance = (props: Props) => {
<Card <Card
title={<LbcSymbol postfix={formatNumberWithCommas(totalBalance)} isTitle />} title={<LbcSymbol postfix={formatNumberWithCommas(totalBalance)} isTitle />}
subtitle={ subtitle={
<I18nMessage tokens={{ lbc: <LbcSymbol /> }}> totalLocked > 0 ? (
This is your total balance. Some of the %lbc% is in use on your channels and content right now. <I18nMessage tokens={{ lbc: <LbcSymbol /> }}>
</I18nMessage> Your total balance. All of this is yours, but some %lbc% is in use on channels and content right now.
</I18nMessage>
) : (
<span>{__('Your total balance.')}</span>
)
} }
actions={ actions={
<> <>
<h2 className="section__title--small"> <h2 className="section__title--small">
<I18nMessage tokens={{ lbc_amount: <CreditAmount amount={balance} precision={8} /> }}> <I18nMessage tokens={{ lbc_amount: <CreditAmount amount={balance} precision={8} /> }}>
%lbc_amount% available balance %lbc_amount% immediately spendable
</I18nMessage> </I18nMessage>
</h2> </h2>
<h2 className="section__title--small"> <h2 className="section__title--small">
<I18nMessage <I18nMessage
tokens={{ tokens={{
lbc_amount: <CreditAmount amount={tipsBalance + claimsBalance + supportsBalance} precision={8} />, lbc_amount: <CreditAmount amount={totalLocked} precision={8} />,
}} }}
> >
%lbc_amount% currently in use %lbc_amount% contributing to content
</I18nMessage> </I18nMessage>
<Button <Button
button="link" button="link"
@ -89,17 +94,17 @@ const WalletBalance = (props: Props) => {
{detailsExpanded && ( {detailsExpanded && (
<div className="section__subtitle"> <div className="section__subtitle">
<dl> <dl>
<dt>{__('... earned and bound in tips')}</dt> <dt>{__('...earned from others (unlock to spend)')}</dt>
<dd> <dd>
<CreditAmount amount={tipsBalance} precision={8} /> <CreditAmount amount={tipsBalance} precision={8} />
</dd> </dd>
<dt>{__('... in your publishes')}</dt> <dt>{__('...on initial publishes (delete or edit past content to spend)')}</dt>
<dd> <dd>
<CreditAmount amount={claimsBalance} precision={8} /> <CreditAmount amount={claimsBalance} precision={8} />
</dd> </dd>
<dt>{__('... in your supports')}</dt> <dt>{__('...supporting content (delete supports to spend)')}</dt>
<dd> <dd>
<CreditAmount amount={supportsBalance} precision={8} /> <CreditAmount amount={supportsBalance} precision={8} />
</dd> </dd>