diff options
author | brunobar79 <brunobar79@gmail.com> | 2018-07-06 05:04:36 +0800 |
---|---|---|
committer | brunobar79 <brunobar79@gmail.com> | 2018-07-06 05:04:36 +0800 |
commit | ba5cde0995f956fb22825d604fe7d664677abaaa (patch) | |
tree | dc4879dbe28578df3b84ccacafdf6f1fef32fbc8 | |
parent | 313090efcc5200c56373cf312052217f1a1340ef (diff) | |
download | dexon-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.json | 9 | ||||
-rw-r--r-- | ui/app/components/pages/create-account/connect-hardware.js | 23 |
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') + )] ) } |