diff options
author | Dan <danjm.com@gmail.com> | 2018-03-14 10:32:27 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-14 10:32:27 +0800 |
commit | 798988597bd17aa73d7a20502905a453f1d51ba4 (patch) | |
tree | 69f083adbe19ce4e5b8094f1004cb1fd3a3f75c9 /ui/app/components/modals/new-account-modal.js | |
parent | cc267d6c818c83b0384b569733d05efef384ac3e (diff) | |
parent | 5fbfb0b67c9eb50b6cc503e78154ab237d2d9731 (diff) | |
download | tangerine-wallet-browser-798988597bd17aa73d7a20502905a453f1d51ba4.tar.gz tangerine-wallet-browser-798988597bd17aa73d7a20502905a453f1d51ba4.tar.zst tangerine-wallet-browser-798988597bd17aa73d7a20502905a453f1d51ba4.zip |
Merge branch 'master' into retry-tx-refractor
Diffstat (limited to 'ui/app/components/modals/new-account-modal.js')
-rw-r--r-- | ui/app/components/modals/new-account-modal.js | 17 |
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'), ]), ]), ]), |