aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/modals/new-account-modal.js
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2018-03-14 02:25:31 +0800
committerGitHub <noreply@github.com>2018-03-14 02:25:31 +0800
commit15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7 (patch)
treea3c2ca7b25e709aa4e1330e8c498b6bd335bffdf /ui/app/components/modals/new-account-modal.js
parent3cbf66a6de0c5348e90992c378d54c6e60f28dd7 (diff)
parent5a1b2093f8a3307b9d56d903d8a1b75e86f36b29 (diff)
downloadtangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.tar.gz
tangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.tar.zst
tangerine-wallet-browser-15722b4e6c5610e2eb4a59683e5cd3cb3fe8b3f7.zip
Merge pull request #3456 from MetaMask/i18n
Add i18n
Diffstat (limited to 'ui/app/components/modals/new-account-modal.js')
-rw-r--r--ui/app/components/modals/new-account-modal.js17
1 files changed, 9 insertions, 8 deletions
diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js
index fc1fd413d..298b76af4 100644
--- a/ui/app/components/modals/new-account-modal.js
+++ b/ui/app/components/modals/new-account-modal.js
@@ -3,6 +3,7 @@ const PropTypes = require('prop-types')
const h = require('react-hyperscript')
const { connect } = require('react-redux')
const actions = require('../../actions')
+const t = require('../../../i18n')
class NewAccountModal extends Component {
constructor (props) {
@@ -11,7 +12,7 @@ class NewAccountModal extends Component {
const newAccountNumber = numberOfExistingAccounts + 1
this.state = {
- newAccountName: `Account ${newAccountNumber}`,
+ newAccountName: `${t('account')} ${newAccountNumber}`,
}
}
@@ -22,7 +23,7 @@ class NewAccountModal extends Component {
h('div.new-account-modal-wrapper', {
}, [
h('div.new-account-modal-header', {}, [
- 'New Account',
+ t('newAccount'),
]),
h('div.modal-close-x', {
@@ -30,19 +31,19 @@ class NewAccountModal extends Component {
}),
h('div.new-account-modal-content', {}, [
- 'Account Name',
+ t('accountName'),
]),
h('div.new-account-input-wrapper', {}, [
h('input.new-account-input', {
value: this.state.newAccountName,
- placeholder: 'E.g. My new account',
+ placeholder: t('sampleAccountName'),
onChange: event => this.setState({ newAccountName: event.target.value }),
}, []),
]),
h('div.new-account-modal-content.after-input', {}, [
- 'or',
+ t('or'),
]),
h('div.new-account-modal-content.after-input.pointer', {
@@ -50,13 +51,13 @@ class NewAccountModal extends Component {
this.props.hideModal()
this.props.showImportPage()
},
- }, 'Import an account'),
+ }, t('importAnAccount')),
- h('div.new-account-modal-content.button', {}, [
+ h('div.new-account-modal-content.button.allcaps', {}, [
h('button.btn-clear', {
onClick: () => this.props.createAccount(newAccountName),
}, [
- 'SAVE',
+ t('save'),
]),
]),
]),