aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorThomas <tmashuang@gmail.com>2018-03-12 23:07:12 +0800
committerThomas <tmashuang@gmail.com>2018-03-12 23:07:12 +0800
commit208b3bc4c1a22b7848e0d9f30ddf3de629f7f0c9 (patch)
treedba2abf208f2d94736628f85c620a4ad10352dc8 /ui
parentb7c7083a112ea6908e8c5990886ab388200a51f4 (diff)
downloadtangerine-wallet-browser-208b3bc4c1a22b7848e0d9f30ddf3de629f7f0c9.tar.gz
tangerine-wallet-browser-208b3bc4c1a22b7848e0d9f30ddf3de629f7f0c9.tar.zst
tangerine-wallet-browser-208b3bc4c1a22b7848e0d9f30ddf3de629f7f0c9.zip
Add i18n back into JsonImportSubview
Diffstat (limited to 'ui')
-rw-r--r--ui/app/accounts/import/json.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/accounts/import/json.js b/ui/app/accounts/import/json.js
index 93c7afdb9..1b5e485d7 100644
--- a/ui/app/accounts/import/json.js
+++ b/ui/app/accounts/import/json.js
@@ -24,11 +24,11 @@ class JsonImportSubview extends Component {
return (
h('div.new-account-import-form__json', [
- h('p', 'Used by a variety of different clients'),
+ h('p', t('usedByClients')),
h('a.warning', {
href: HELP_LINK,
target: '_blank',
- }, 'File import not working? Click here!'),
+ }, t('fileImportFail')),
h(FileInput, {
readAs: 'text',
@@ -43,7 +43,7 @@ class JsonImportSubview extends Component {
h('input.new-account-import-form__input-password', {
type: 'password',
- placeholder: 'Enter password',
+ placeholder: t('enterPassword'),
id: 'json-password-box',
onKeyPress: this.createKeyringOnEnter.bind(this),
}),
@@ -53,13 +53,13 @@ class JsonImportSubview extends Component {
h('button.new-account-create-form__button-cancel', {
onClick: () => this.props.goHome(),
}, [
- 'CANCEL',
+ t('cancel'),
]),
h('button.new-account-create-form__button-create', {
onClick: () => this.createNewKeychain(),
}, [
- 'IMPORT',
+ t('import'),
]),
]),
@@ -91,7 +91,7 @@ class JsonImportSubview extends Component {
const { fileContents } = state
if (!fileContents) {
- const message = 'You must select a file to import.'
+ const message = t('needImportFile')
return this.props.displayWarning(message)
}
@@ -99,7 +99,7 @@ class JsonImportSubview extends Component {
const password = passwordInput.value
if (!password) {
- const message = 'You must enter a password for the selected file.'
+ const message = t('needImportPassword')
return this.props.displayWarning(message)
}