From 42eb17e7e021476227b846d45cc43409aa451b6e Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Thu, 22 Feb 2018 10:25:11 +0100 Subject: i18n fixes --- src/webex/pages/popup.tsx | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/webex/pages/popup.tsx') diff --git a/src/webex/pages/popup.tsx b/src/webex/pages/popup.tsx index 6bba10141..6d0134b84 100644 --- a/src/webex/pages/popup.tsx +++ b/src/webex/pages/popup.tsx @@ -361,7 +361,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { return ( Started to withdraw - {" "}{renderAmount(d.requestedAmount)} + {renderAmount(d.requestedAmount)} from {exchange} ({pub}). ); @@ -369,7 +369,7 @@ function formatHistoryItem(historyItem: HistoryRecord) { case "offer-contract": { return ( - Merchant {abbrev(d.merchantName, 15)} offered + Merchant {abbrev(d.merchantName, 15)} offered contract {abbrev(d.contractTermsHash)}. ); @@ -408,13 +408,16 @@ function formatHistoryItem(historyItem: HistoryRecord) { const tipPageUrl = new URI(chrome.extension.getURL("/src/webex/pages/tip.html")); const params = { tip_id: d.tipId, merchant_domain: d.merchantDomain }; const url = tipPageUrl.query(params).href(); + const tipLink = {i18n.str`tip`}; + // i18n: Tip return ( - - Merchant {d.merchantDomain} gave - a tip of {renderAmount(d.amount)}. - - { d.accepted ? null : You did not accept the tip yet. } - + <> + + Merchant {d.merchantDomain} gave + a {tipLink} of {renderAmount(d.amount)}. + + { d.accepted ? null : You did not accept the tip yet. } + ); } default: -- cgit v1.2.3