Merge pull request #254 from lbryio/fix-send-tip-i18n

doSendTip i18n fix
This commit is contained in:
Akinwale Ariwodola 2019-12-20 07:58:54 +01:00 committed by GitHub
commit abe90e0665
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

4
dist/bundle.es.js vendored
View file

@ -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')
}));

View file

@ -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'),
})