From d57b6a4bcc595aee990b8e1c63e786e7796b737b Mon Sep 17 00:00:00 2001 From: Florian Dold Date: Sun, 27 Nov 2016 22:13:24 +0100 Subject: modularize i18n --- src/pages/confirm-contract.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'src/pages/confirm-contract.tsx') diff --git a/src/pages/confirm-contract.tsx b/src/pages/confirm-contract.tsx index 2ce3b0616..3a0712a8c 100644 --- a/src/pages/confirm-contract.tsx +++ b/src/pages/confirm-contract.tsx @@ -28,6 +28,7 @@ import {Contract, AmountJson, ExchangeRecord} from "src/types"; import {OfferRecord} from "src/wallet"; import {renderContract, prettyAmount} from "src/renderHtml"; import {getExchanges} from "src/wxApi"; +import * as i18n from "src/i18n"; interface DetailState { @@ -72,12 +73,12 @@ class Details extends React.Component { show less details
- {i18n`Accepted exchanges:`} + {i18n.str`Accepted exchanges:`}
    {this.props.contract.exchanges.map( e =>
  • {`${e.url}: ${e.master_pub}`}
  • )}
- {i18n`Exchanges in the wallet:`} + {i18n.str`Exchanges in the wallet:`}
    {(this.props.exchanges || []).map( (e: ExchangeRecord) => @@ -153,8 +154,8 @@ class ContractPrompt extends React.Component e.master_pub); let ex = this.state.exchanges.find((e) => acceptedExchangePubs.indexOf(e.masterPublicKey) >= 0); -- cgit v1.2.3