aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbrunobar79 <brunobar79@gmail.com>2018-07-06 05:04:36 +0800
committerbrunobar79 <brunobar79@gmail.com>2018-07-06 05:04:36 +0800
commitba5cde0995f956fb22825d604fe7d664677abaaa (patch)
treedc4879dbe28578df3b84ccacafdf6f1fef32fbc8
parent313090efcc5200c56373cf312052217f1a1340ef (diff)
downloaddexon-wallet-ba5cde0995f956fb22825d604fe7d664677abaaa.tar.gz
dexon-wallet-ba5cde0995f956fb22825d604fe7d664677abaaa.tar.zst
dexon-wallet-ba5cde0995f956fb22825d604fe7d664677abaaa.zip
move strings to localization file
-rw-r--r--app/_locales/en/messages.json9
-rw-r--r--ui/app/components/pages/create-account/connect-hardware.js23
2 files changed, 21 insertions, 11 deletions
diff --git a/app/_locales/en/messages.json b/app/_locales/en/messages.json
index f10ba01f..9c3e4380 100644
--- a/app/_locales/en/messages.json
+++ b/app/_locales/en/messages.json
@@ -80,6 +80,9 @@
"borrowDharma": {
"message": "Borrow With Dharma (Beta)"
},
+ "browserNotSupported": {
+ "message": "Bummer! Your Browser is not supported..."
+ },
"builtInCalifornia": {
"message": "MetaMask is designed and built in California."
},
@@ -107,6 +110,9 @@
"close": {
"message": "Close"
},
+ "chromeRequiredForTrezor":{
+ "message": "You need to use Metamask on Google Chrome in order to connect to your TREZOR device."
+ },
"confirm": {
"message": "Confirm"
},
@@ -259,6 +265,9 @@
"done": {
"message": "Done"
},
+ "downloadGoogleChrome": {
+ "message": "Download Google Chrome"
+ },
"downloadStateLogs": {
"message": "Download State Logs"
},
diff --git a/ui/app/components/pages/create-account/connect-hardware.js b/ui/app/components/pages/create-account/connect-hardware.js
index c51b4c77..1e4ee38e 100644
--- a/ui/app/components/pages/create-account/connect-hardware.js
+++ b/ui/app/components/pages/create-account/connect-hardware.js
@@ -179,17 +179,18 @@ class ConnectHardwareForm extends Component {
renderUnsupportedBrowser () {
return (
- [h('div.hw-unsupported-browser', [
- h('h3.hw-unsupported-browser__title', {}, 'Bummer! Your Browser is not supported...'),
- h('p.hw-unsupported-browser__msg', {}, 'You need to use Metamask on Google Chrome in order to connect to your TREZOR device.'),
- ]),
- h(
- 'button.btn-primary.btn--large',
- { onClick: () => global.platform.openWindow({
- url: 'https://google.com/chrome',
- }), style: { margin: 12 } },
- 'Download Google Chrome'
- )]
+ [
+ h('div.hw-unsupported-browser', [
+ h('h3.hw-unsupported-browser__title', {}, this.context.t('browserNotSupported')),
+ h('p.hw-unsupported-browser__msg', {}, this.context.t('chromeRequiredForTrezor')),
+ ]),
+ h(
+ 'button.btn-primary.btn--large',
+ { onClick: () => global.platform.openWindow({
+ url: 'https://google.com/chrome',
+ }), style: { margin: 12 } },
+ this.context.t('downloadGoogleChrome')
+ )]
)
}