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/app.js | |
parent | eb5a84975b490664aa6238be6ceab3d4749167ee (diff) | |
download | dexon-wallet-5fe0be722b6514692a68e920ee8058c5d572237d.tar.gz dexon-wallet-5fe0be722b6514692a68e920ee8058c5d572237d.tar.zst dexon-wallet-5fe0be722b6514692a68e920ee8058c5d572237d.zip |
Handle i18n with redux.
Diffstat (limited to 'ui/app/app.js')
-rw-r--r-- | ui/app/app.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/app/app.js b/ui/app/app.js index f7fea0c2..34dd3d86 100644 --- a/ui/app/app.js +++ b/ui/app/app.js @@ -1,10 +1,10 @@ const inherits = require('util').inherits const Component = require('react').Component -const connect = require('react-redux').connect +const connect = require('./metamask-connect') const h = require('react-hyperscript') const actions = require('./actions') const classnames = require('classnames') -const t = global.getMessage +const t = require('../i18n-helper').getMessage // mascara const MascaraFirstTime = require('../../mascara/src/app/first-time').default @@ -294,8 +294,8 @@ App.prototype.renderAppBar = function () { // metamask name h('.flex-row', [ - h('h1', t('appName')), - h('div.beta-label', t('beta')), + h('h1', t(this.props.localeMessages, 'appName')), + h('div.beta-label', t(this.props.localeMessages, 'beta')), ]), ]), |