diff --git a/dist/bundle.es.js b/dist/bundle.es.js index ec30e15..e548357 100644 --- a/dist/bundle.es.js +++ b/dist/bundle.es.js @@ -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') })); diff --git a/src/redux/actions/wallet.js b/src/redux/actions/wallet.js index 4fdfb15..4ae4f02 100644 --- a/src/redux/actions/wallet.js +++ b/src/redux/actions/wallet.js @@ -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'), })