diff options
author | Dan <danjm.com@gmail.com> | 2018-03-16 08:29:45 +0800 |
---|---|---|
committer | Dan <danjm.com@gmail.com> | 2018-03-16 08:29:45 +0800 |
commit | 5fe0be722b6514692a68e920ee8058c5d572237d (patch) | |
tree | 58da5c62f17cbd0160d24e44918aa34b4ee23300 /ui/app/components/modals/new-account-modal.js | |
parent | eb5a84975b490664aa6238be6ceab3d4749167ee (diff) | |
download | tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.tar.gz tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.tar.zst tangerine-wallet-browser-5fe0be722b6514692a68e920ee8058c5d572237d.zip |
Handle i18n with redux.
Diffstat (limited to 'ui/app/components/modals/new-account-modal.js')
-rw-r--r-- | ui/app/components/modals/new-account-modal.js | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/ui/app/components/modals/new-account-modal.js b/ui/app/components/modals/new-account-modal.js index 7fe367f3f..7f9b7a154 100644 --- a/ui/app/components/modals/new-account-modal.js +++ b/ui/app/components/modals/new-account-modal.js @@ -3,7 +3,7 @@ const PropTypes = require('prop-types') const h = require('react-hyperscript') const { connect } = require('react-redux') const actions = require('../../actions') -const t = global.getMessage +const t = require('../../../i18n-helper').getMessage class NewAccountModal extends Component { constructor (props) { @@ -23,7 +23,7 @@ class NewAccountModal extends Component { h('div.new-account-modal-wrapper', { }, [ h('div.new-account-modal-header', {}, [ - t('newAccount'), + t(this.props.localeMessages, 'newAccount'), ]), h('div.modal-close-x', { @@ -31,19 +31,19 @@ class NewAccountModal extends Component { }), h('div.new-account-modal-content', {}, [ - t('accountName'), + t(this.props.localeMessages, 'accountName'), ]), h('div.new-account-input-wrapper', {}, [ h('input.new-account-input', { value: this.state.newAccountName, - placeholder: t('sampleAccountName'), + placeholder: t(this.props.localeMessages, 'sampleAccountName'), onChange: event => this.setState({ newAccountName: event.target.value }), }, []), ]), h('div.new-account-modal-content.after-input', {}, [ - t('or'), + t(this.props.localeMessages, 'or'), ]), h('div.new-account-modal-content.after-input.pointer', { @@ -51,13 +51,13 @@ class NewAccountModal extends Component { this.props.hideModal() this.props.showImportPage() }, - }, t('importAnAccount')), + }, t(this.props.localeMessages, 'importAnAccount')), h('div.new-account-modal-content.button.allcaps', {}, [ h('button.btn-clear', { onClick: () => this.props.createAccount(newAccountName), }, [ - t('save'), + t(this.props.localeMessages, 'save'), ]), ]), ]), |