1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

move strings to localization file

This commit is contained in:
brunobar79 2018-07-05 17:04:36 -04:00
parent 313090efcc
commit ba5cde0995
2 changed files with 21 additions and 11 deletions

View File

@ -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"
},

View File

@ -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')
)]
)
}