Some new translation stringfs
This commit is contained in:
parent
a1673ebfa9
commit
f21f797ae3
4 changed files with 8 additions and 8 deletions
|
@ -158,7 +158,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) {
|
|||
if (cb) cb(ABANDON_STATES.ERROR);
|
||||
dispatch(
|
||||
doToast({
|
||||
message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip',
|
||||
message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'),
|
||||
isError: true,
|
||||
})
|
||||
);
|
||||
|
@ -210,7 +210,7 @@ export function doAbandonTxo(txo: Txo, cb: string => void) {
|
|||
}
|
||||
|
||||
if (!method) {
|
||||
console.error('No "method" chosen for claim or support abandon');
|
||||
console.error(__('No `method` chosen for claim or support abandon'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -231,7 +231,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
|
|||
const supportToAbandon = mySupports[outpoint];
|
||||
|
||||
if (!claimToAbandon && !supportToAbandon) {
|
||||
console.error('No associated support or claim with txid: ', txid);
|
||||
console.error(__('No associated support or claim with txid: '), txid);
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -255,7 +255,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
|
|||
const errorCallback = () => {
|
||||
dispatch(
|
||||
doToast({
|
||||
message: isClaim ? 'Error abandoning your claim/support' : 'Error unlocking your tip',
|
||||
message: isClaim ? __('Error abandoning your claim/support') : __('Error unlocking your tip'),
|
||||
isError: true,
|
||||
})
|
||||
);
|
||||
|
@ -301,7 +301,7 @@ export function doAbandonClaim(txid: string, nout: number, cb: string => void) {
|
|||
}
|
||||
|
||||
if (!method) {
|
||||
console.error('No "method" chosen for claim or support abandon');
|
||||
console.error(__('No "method" chosen for claim or support abandon'));
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
|
@ -37,7 +37,7 @@ export function doFileGet(uri: string, saveFile: boolean = true, onSuccess?: Get
|
|||
data: { outpoint },
|
||||
});
|
||||
|
||||
dispatch(doToast({ message: `File timeout for uri ${uri}`, isError: true }));
|
||||
dispatch(doToast({ message: __(`File timeout for uri ${uri}`), isError: true }));
|
||||
} else {
|
||||
if (streamInfo.purchase_receipt || streamInfo.content_fee) {
|
||||
dispatch({
|
||||
|
|
|
@ -4,7 +4,7 @@ import uuid from 'uuid/v4';
|
|||
|
||||
export function doToast(params: ToastParams) {
|
||||
if (!params) {
|
||||
throw Error("'params' object is required to create a toast notification");
|
||||
throw Error(__("'params' object is required to create a toast notification"));
|
||||
}
|
||||
|
||||
return {
|
||||
|
|
|
@ -62,7 +62,7 @@ const defaultState: PublishState = {
|
|||
bid: 0.1,
|
||||
bidError: undefined,
|
||||
licenseType: 'None',
|
||||
otherLicenseDescription: 'All rights reserved',
|
||||
otherLicenseDescription: __('All rights reserved'),
|
||||
licenseUrl: '',
|
||||
tags: [],
|
||||
publishing: false,
|
||||
|
|
Loading…
Add table
Reference in a new issue