aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/network.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/network.js
parent338ebe5f402ff50dc8d1a91b7b69cd8e262cc789 (diff)
downloadtangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.gz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.bz2
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.lz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.xz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.zst
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.zip
first steps to i18n
Diffstat (limited to 'ui/app/components/network.js')
-rw-r--r--ui/app/components/network.js24
1 files changed, 12 insertions, 12 deletions
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index 3e91fa807..6cb1ff53d 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -33,7 +33,7 @@ Network.prototype.render = function () {
onClick: (event) => this.props.onClick(event),
}, [
h('img', {
- title: 'Attempting to connect to blockchain.',
+ title: t('attemptingConnect'),
style: {
width: '27px',
},
@@ -41,22 +41,22 @@ Network.prototype.render = function () {
}),
])
} else if (providerName === 'mainnet') {
- hoverText = 'Main Ethereum Network'
+ hoverText = t('mainnet')
iconName = 'ethereum-network'
} else if (providerName === 'ropsten') {
- hoverText = 'Ropsten Test Network'
+ hoverText = t('ropsten')
iconName = 'ropsten-test-network'
} else if (parseInt(networkNumber) === 3) {
- hoverText = 'Ropsten Test Network'
+ hoverText = t('ropsten')
iconName = 'ropsten-test-network'
} else if (providerName === 'kovan') {
- hoverText = 'Kovan Test Network'
+ hoverText = t('kovan')
iconName = 'kovan-test-network'
} else if (providerName === 'rinkeby') {
- hoverText = 'Rinkeby Test Network'
+ hoverText = t('rinkeby')
iconName = 'rinkeby-test-network'
} else {
- hoverText = 'Unknown Private Network'
+ hoverText = t('unknownNetwork')
iconName = 'unknown-private-network'
}
@@ -84,7 +84,7 @@ Network.prototype.render = function () {
backgroundColor: '#038789', // $blue-lagoon
nonSelectBackgroundColor: '#15afb2',
}),
- h('.network-name', 'Main Network'),
+ h('.network-name', t('mainnet')),
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
])
case 'ropsten-test-network':
@@ -93,7 +93,7 @@ Network.prototype.render = function () {
backgroundColor: '#e91550', // $crimson
nonSelectBackgroundColor: '#ec2c50',
}),
- h('.network-name', 'Ropsten Test Net'),
+ h('.network-name', t('ropsten')),
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
])
case 'kovan-test-network':
@@ -102,7 +102,7 @@ Network.prototype.render = function () {
backgroundColor: '#690496', // $purple
nonSelectBackgroundColor: '#b039f3',
}),
- h('.network-name', 'Kovan Test Net'),
+ h('.network-name', t('kovan')),
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
])
case 'rinkeby-test-network':
@@ -111,7 +111,7 @@ Network.prototype.render = function () {
backgroundColor: '#ebb33f', // $tulip-tree
nonSelectBackgroundColor: '#ecb23e',
}),
- h('.network-name', 'Rinkeby Test Net'),
+ h('.network-name', t('rinkeby')),
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
])
default:
@@ -123,7 +123,7 @@ Network.prototype.render = function () {
},
}),
- h('.network-name', 'Private Network'),
+ h('.network-name', t('privateNetwork')),
h('i.fa.fa-chevron-down.fa-lg.network-caret'),
])
}