aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/copyable.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/components/copyable.js')
-rw-r--r--ui/app/components/copyable.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/copyable.js b/ui/app/components/copyable.js
index fca7d3863..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 = require('../../i18n')
+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: {