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/copyable.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/copyable.js')
-rw-r--r-- | ui/app/components/copyable.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/copyable.js b/ui/app/components/copyable.js index e0bf66f7e..92a337a37 100644 --- a/ui/app/components/copyable.js +++ b/ui/app/components/copyable.js @@ -4,7 +4,7 @@ const inherits = require('util').inherits const Tooltip = require('./tooltip') const copyToClipboard = require('copy-to-clipboard') -const t = global.getMessage +const t = require('../../i18n-helper').getMessage module.exports = Copyable @@ -23,7 +23,7 @@ Copyable.prototype.render = function () { const { copied } = state return h(Tooltip, { - title: copied ? t('copiedExclamation') : t('copy'), + title: copied ? t(this.props.localeMessages, 'copiedExclamation') : t(this.props.localeMessages, 'copy'), position: 'bottom', }, h('span', { style: { |