Revert "Some new translation stringfs"

This reverts commit f21f797ae3.
This commit is contained in:
Sean Yesmunt 2020-07-14 11:06:58 -04:00
parent c57d5ea664
commit 7a7a1aad32
4 changed files with 8 additions and 8 deletions

View file

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

View file

@ -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({

View file

@ -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 {

View file

@ -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,