From afe2adbb5ac6689b93b4a9e058e09ae4134786f5 Mon Sep 17 00:00:00 2001 From: Daniel Ternyak Date: Sun, 25 Jun 2017 00:57:43 -0500 Subject: [PATCH] add translation support --- .../Tabs/Swap/components/receivingAddress.js | 5 +++-- .../Tabs/Swap/components/swapInformation.js | 11 +++++++---- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/common/containers/Tabs/Swap/components/receivingAddress.js b/common/containers/Tabs/Swap/components/receivingAddress.js index a0cd4a80..c2bc37a8 100644 --- a/common/containers/Tabs/Swap/components/receivingAddress.js +++ b/common/containers/Tabs/Swap/components/receivingAddress.js @@ -2,6 +2,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { DONATION_ADDRESSES_MAP } from 'config/data'; import Validator from 'libs/validator'; +import translate from 'translations'; export default class ReceivingAddress extends Component { constructor(props) { @@ -40,7 +41,7 @@ export default class ReceivingAddress extends Component {
diff --git a/common/containers/Tabs/Swap/components/swapInformation.js b/common/containers/Tabs/Swap/components/swapInformation.js index 272e4c49..def61d99 100644 --- a/common/containers/Tabs/Swap/components/swapInformation.js +++ b/common/containers/Tabs/Swap/components/swapInformation.js @@ -1,6 +1,7 @@ import React, { Component } from 'react'; import PropTypes from 'prop-types'; import { toFixedIfLarger } from 'utils/formatters'; +import translate from 'translations'; export default class SwapInformation extends Component { constructor(props) { @@ -29,7 +30,9 @@ export default class SwapInformation extends Component { return (
-
Your Information
+
+ {translate('SWAP_information')} +
{` ${toFixedIfLarger(originAmount, 6)} ${originKind}`} -

Amount to send

+

{translate('SEND_amount')}

{` ${toFixedIfLarger(destinationAmount, 6)} ${destinationKind}`}

-

Amount to receive

+

{translate('SWAP_rec_amt')}

@@ -67,7 +70,7 @@ export default class SwapInformation extends Component { 6 )} ${originKind}/${destinationKind} `}

-

Your rate

+

{translate('SWAP_your_rate')}