mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
i18n Import flow
This commit is contained in:
parent
85a612b34d
commit
cffaf44714
@ -37,7 +37,7 @@ AccountImportSubview.prototype.render = function () {
|
|||||||
h('div.new-account-import-form', [
|
h('div.new-account-import-form', [
|
||||||
|
|
||||||
h('.new-account-import-disclaimer', [
|
h('.new-account-import-disclaimer', [
|
||||||
h('span', 'Imported accounts will not be associated with your originally created MetaMask account seedphrase. Learn more about imported accounts '),
|
h('span', t('importAccountMsg')),
|
||||||
h('span', {
|
h('span', {
|
||||||
style: {
|
style: {
|
||||||
cursor: 'pointer',
|
cursor: 'pointer',
|
||||||
@ -48,12 +48,12 @@ AccountImportSubview.prototype.render = function () {
|
|||||||
url: 'https://metamask.helpscoutdocs.com/article/17-what-are-loose-accounts',
|
url: 'https://metamask.helpscoutdocs.com/article/17-what-are-loose-accounts',
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
}, 'here'),
|
}, t('here')),
|
||||||
]),
|
]),
|
||||||
|
|
||||||
h('div.new-account-import-form__select-section', [
|
h('div.new-account-import-form__select-section', [
|
||||||
|
|
||||||
h('div.new-account-import-form__select-label', 'Select Type'),
|
h('div.new-account-import-form__select-label', t('selectType')),
|
||||||
|
|
||||||
h(Select, {
|
h(Select, {
|
||||||
className: 'new-account-import-form__select',
|
className: 'new-account-import-form__select',
|
||||||
|
@ -84,7 +84,7 @@ class JsonImportSubview extends Component {
|
|||||||
const state = this.state
|
const state = this.state
|
||||||
|
|
||||||
if (!state) {
|
if (!state) {
|
||||||
const message = 'You must select a valid file to import.'
|
const message = t('validFileImport')
|
||||||
return this.props.displayWarning(message)
|
return this.props.displayWarning(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -102,7 +102,7 @@ class JsonImportSubview extends Component {
|
|||||||
const message = t('needImportPassword')
|
const message = t('needImportPassword')
|
||||||
return this.props.displayWarning(message)
|
return this.props.displayWarning(message)
|
||||||
}
|
}
|
||||||
|
|
||||||
this.props.importNewJsonAccount([ fileContents, password ])
|
this.props.importNewJsonAccount([ fileContents, password ])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user