aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/shapeshift-form.js
diff options
context:
space:
mode:
authorNick Doiron <ndoiron@mapmeld.com>2018-01-23 17:48:03 +0800
committerNick Doiron <ndoiron@mapmeld.com>2018-01-23 17:48:03 +0800
commitbad70eb1b328aa911a2523ccab642d7607161b4b (patch)
treed99970c6f35333563ee0a4a390055aa73e93ea21 /ui/app/components/shapeshift-form.js
parent338ebe5f402ff50dc8d1a91b7b69cd8e262cc789 (diff)
downloadtangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.gz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.zst
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.zip
first steps to i18n
Diffstat (limited to 'ui/app/components/shapeshift-form.js')
-rw-r--r--ui/app/components/shapeshift-form.js22
1 files changed, 11 insertions, 11 deletions
diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js
index 2270b8236..773ff227c 100644
--- a/ui/app/components/shapeshift-form.js
+++ b/ui/app/components/shapeshift-form.js
@@ -14,7 +14,7 @@ function mapStateToProps (state) {
tokenExchangeRates,
selectedAddress,
} = state.metamask
-
+
return {
coinOptions,
tokenExchangeRates,
@@ -92,7 +92,7 @@ ShapeshiftForm.prototype.onBuyWithShapeShift = function () {
}))
.catch(() => this.setState({
showQrCode: false,
- errorMessage: 'Invalid Request',
+ errorMessage: t('invalidRequest'),
isLoading: false,
}))
}
@@ -124,10 +124,10 @@ ShapeshiftForm.prototype.renderMarketInfo = function () {
return h('div.shapeshift-form__metadata', {}, [
- this.renderMetadata('Status', limit ? 'Available' : 'Unavailable'),
- this.renderMetadata('Limit', limit),
- this.renderMetadata('Exchange Rate', rate),
- this.renderMetadata('Minimum', minimum),
+ this.renderMetadata(t('status'), limit ? t('available') : t('unavailable')),
+ this.renderMetadata(t('limit'), limit),
+ this.renderMetadata(t('exchangeRate'), rate),
+ this.renderMetadata(t('min'), minimum),
])
}
@@ -141,7 +141,7 @@ ShapeshiftForm.prototype.renderQrCode = function () {
return h('div.shapeshift-form', {}, [
h('div.shapeshift-form__deposit-instruction', [
- 'Deposit your BTC to the address below:',
+ t('depositBTC'),
]),
h('div', depositAddress),
@@ -178,7 +178,7 @@ ShapeshiftForm.prototype.render = function () {
h('div.shapeshift-form__selector', [
- h('div.shapeshift-form__selector-label', 'Deposit'),
+ h('div.shapeshift-form__selector-label', t('deposit')),
h(SimpleDropdown, {
selectedOption: this.state.depositCoin,
@@ -198,7 +198,7 @@ ShapeshiftForm.prototype.render = function () {
h('div.shapeshift-form__selector', [
h('div.shapeshift-form__selector-label', [
- 'Receive',
+ t('receive'),
]),
h('div.shapeshift-form__selector-input', ['ETH']),
@@ -214,7 +214,7 @@ ShapeshiftForm.prototype.render = function () {
}, [
h('div.shapeshift-form__address-input-label', [
- 'Your Refund Address',
+ t('refundAddress'),
]),
h('input.shapeshift-form__address-input', {
@@ -236,7 +236,7 @@ ShapeshiftForm.prototype.render = function () {
className: btnClass,
disabled: !token,
onClick: () => this.onBuyWithShapeShift(),
- }, ['Buy']),
+ }, [t('buyButton')]),
])
}