Merge pull request #254 from lbryio/fix-send-tip-i18n
doSendTip i18n fix
This commit is contained in:
commit
abe90e0665
2 changed files with 5 additions and 5 deletions
4
dist/bundle.es.js
vendored
4
dist/bundle.es.js
vendored
|
@ -2500,7 +2500,7 @@ function doSendTip(amount, claimId, isSupport, successCallback, errorCallback) {
|
|||
|
||||
if (balance - amount <= 0) {
|
||||
dispatch(doToast({
|
||||
message: 'Insufficient credits',
|
||||
message: __('Insufficient credits'),
|
||||
isError: true
|
||||
}));
|
||||
return;
|
||||
|
@ -2508,7 +2508,7 @@ function doSendTip(amount, claimId, isSupport, successCallback, errorCallback) {
|
|||
|
||||
const success = () => {
|
||||
dispatch(doToast({
|
||||
message: shouldSupport ? __(`You deposited ${amount} LBC as a support!`) : __(`You sent ${amount} LBC as a tip, Mahalo!`),
|
||||
message: shouldSupport ? __('You deposited %amount% LBC as a support!', { amount }) : __('You sent %amount% LBC as a tip, Mahalo!', { amount }),
|
||||
linkText: __('History'),
|
||||
linkTarget: __('/wallet')
|
||||
}));
|
||||
|
|
|
@ -206,7 +206,7 @@ export function doSendTip(amount, claimId, isSupport, successCallback, errorCall
|
|||
if (balance - amount <= 0) {
|
||||
dispatch(
|
||||
doToast({
|
||||
message: 'Insufficient credits',
|
||||
message: __('Insufficient credits'),
|
||||
isError: true,
|
||||
})
|
||||
);
|
||||
|
@ -217,8 +217,8 @@ export function doSendTip(amount, claimId, isSupport, successCallback, errorCall
|
|||
dispatch(
|
||||
doToast({
|
||||
message: shouldSupport
|
||||
? __(`You deposited ${amount} LBC as a support!`)
|
||||
: __(`You sent ${amount} LBC as a tip, Mahalo!`),
|
||||
? __('You deposited %amount% LBC as a support!', { amount })
|
||||
: __('You sent %amount% LBC as a tip, Mahalo!', { amount }),
|
||||
linkText: __('History'),
|
||||
linkTarget: __('/wallet'),
|
||||
})
|
||||
|
|
Loading…
Reference in a new issue