diff options
author | Dan Miller <danjm.com@gmail.com> | 2018-12-13 00:13:53 +0800 |
---|---|---|
committer | Dan Miller <danjm.com@gmail.com> | 2018-12-13 00:35:25 +0800 |
commit | 3cca6fc8862673eb96a04586c5d31438f875431a (patch) | |
tree | 3047d073fbdc149c40b0615b1f2d81d0dfaa4f03 /ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content | |
parent | 7c60414075877b79b3b98be82cdb6eda5df10329 (diff) | |
download | tangerine-wallet-browser-3cca6fc8862673eb96a04586c5d31438f875431a.tar.gz tangerine-wallet-browser-3cca6fc8862673eb96a04586c5d31438f875431a.tar.zst tangerine-wallet-browser-3cca6fc8862673eb96a04586c5d31438f875431a.zip |
Add missing translation to the gas customization component.
Diffstat (limited to 'ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content')
2 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js index 264d038da..05b8f700b 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/basic-tab-content.component.js @@ -13,12 +13,13 @@ export default class BasicTabContent extends Component { } render () { + const { t } = this.context const { gasPriceButtonGroupProps } = this.props return ( <div className="basic-tab-content"> - <div className="basic-tab-content__title">Estimated Processing Times</div> - <div className="basic-tab-content__blurb">Select a higher gas fee to accelerate the processing of your transaction.*</div> + <div className="basic-tab-content__title">{ t('estimatedProcessingTimes') }</div> + <div className="basic-tab-content__blurb">{ t('selectAHigherGasFee') }</div> {!gasPriceButtonGroupProps.loading ? <GasPriceButtonGroup className="gas-price-button-group--alt" @@ -27,7 +28,7 @@ export default class BasicTabContent extends Component { /> : <Loading /> } - <div className="basic-tab-content__footer-blurb">* Accelerating a transaction by using a higher gas price increases its chances of getting processed by the network faster, but it is not always guaranteed.</div> + <div className="basic-tab-content__footer-blurb">{ t('acceleratingATransaction') }</div> </div> ) } diff --git a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/tests/basic-tab-content-component.test.js b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/tests/basic-tab-content-component.test.js index 25abdd997..47864fcab 100644 --- a/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/tests/basic-tab-content-component.test.js +++ b/ui/app/components/gas-customization/gas-modal-page-container/basic-tab-content/tests/basic-tab-content-component.test.js @@ -1,6 +1,6 @@ import React from 'react' import assert from 'assert' -import { shallow } from 'enzyme' +import shallow from '../../../../../../lib/shallow-with-context' import BasicTabContent from '../basic-tab-content.component' import GasPriceButtonGroup from '../../../gas-price-button-group/' |