aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-21 00:49:12 +0800
committerThomas <tmashuang@gmail.com>2018-03-21 00:49:12 +0800
commitcffaf44714830904526c05bd4acf7a88c6e3cabe (patch)
treef2ad0b47e10e788a7abd8415a628cedb0f626f44 /ui
parent85a612b34de27c3f4dcaa070e39cf88d21541652 (diff)
downloadtangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar.gz
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar.bz2
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar.lz
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar.xz
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.tar.zst
tangerine-wallet-browser-cffaf44714830904526c05bd4acf7a88c6e3cabe.zip
i18n Import flow
Diffstat (limited to 'ui')
-rw-r--r--ui/app/accounts/import/index.js6
-rw-r--r--ui/app/accounts/import/json.js4
2 files changed, 5 insertions, 5 deletions
diff --git a/ui/app/accounts/import/index.js b/ui/app/accounts/import/index.js
index c1b190e3d..fc9031a65 100644
--- a/ui/app/accounts/import/index.js
+++ b/ui/app/accounts/import/index.js
@@ -37,7 +37,7 @@ AccountImportSubview.prototype.render = function () {
h('div.new-account-import-form', [
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', {
style: {
cursor: 'pointer',
@@ -48,12 +48,12 @@ AccountImportSubview.prototype.render = function () {
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-label', 'Select Type'),
+ h('div.new-account-import-form__select-label', t('selectType')),
h(Select, {
className: 'new-account-import-form__select',
diff --git a/ui/app/accounts/import/json.js b/ui/app/accounts/import/json.js
index 1b5e485d7..fa25168f1 100644
--- a/ui/app/accounts/import/json.js
+++ b/ui/app/accounts/import/json.js
@@ -84,7 +84,7 @@ class JsonImportSubview extends Component {
const state = this.state
if (!state) {
- const message = 'You must select a valid file to import.'
+ const message = t('validFileImport')
return this.props.displayWarning(message)
}
@@ -102,7 +102,7 @@ class JsonImportSubview extends Component {
const message = t('needImportPassword')
return this.props.displayWarning(message)
}
-
+
this.props.importNewJsonAccount([ fileContents, password ])
}
}