aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/transaction-list-item.js
diff options
context:
space:
mode:
authorNick Doiron <ndoiron@mapmeld.com>2018-01-23 17:48:03 +0800
committerNick Doiron <ndoiron@mapmeld.com>2018-01-23 17:48:03 +0800
commitbad70eb1b328aa911a2523ccab642d7607161b4b (patch)
treed99970c6f35333563ee0a4a390055aa73e93ea21 /ui/app/components/transaction-list-item.js
parent338ebe5f402ff50dc8d1a91b7b69cd8e262cc789 (diff)
downloadtangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.gz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.bz2
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.lz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.xz
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.tar.zst
tangerine-wallet-browser-bad70eb1b328aa911a2523ccab642d7607161b4b.zip
first steps to i18n
Diffstat (limited to 'ui/app/components/transaction-list-item.js')
-rw-r--r--ui/app/components/transaction-list-item.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index 4e3d2cb93..10d4236cb 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -85,7 +85,7 @@ TransactionListItem.prototype.render = function () {
]),
h(Tooltip, {
- title: 'Transaction Number',
+ title: t('transactionNumber'),
position: 'right',
}, [
h('span', {
@@ -142,12 +142,12 @@ TransactionListItem.prototype.render = function () {
style: {
paddingRight: '2px',
},
- }, 'Taking too long?'),
+ }, t('takesTooLong')),
h('div', {
style: {
textDecoration: 'underline',
},
- }, 'Retry with a higher gas price here'),
+ }, t('retryWithMoreGas')),
]),
])
)
@@ -176,11 +176,11 @@ function recipientField (txParams, transaction, isTx, isMsg) {
let message
if (isMsg) {
- message = 'Signature Requested'
+ message = t('sigRequested')
} else if (txParams.to) {
message = addressSummary(txParams.to)
} else {
- message = 'Contract Published'
+ message = t('contractPublished')
}
return h('div', {
@@ -203,7 +203,7 @@ function renderErrorOrWarning (transaction) {
// show rejected
if (status === 'rejected') {
- return h('span.error', ' (Rejected)')
+ return h('span.error', ' (' + t('rejected') + ')')
}
if (transaction.err || transaction.warning) {
const { err, warning = {} } = transaction
@@ -219,7 +219,7 @@ function renderErrorOrWarning (transaction) {
title: message,
position: 'bottom',
}, [
- h(`span.error`, ` (Failed)`),
+ h(`span.error`, ` (` + t('failed') + `)`),
])
)
}
@@ -231,7 +231,7 @@ function renderErrorOrWarning (transaction) {
title: message,
position: 'bottom',
}, [
- h(`span.warning`, ` (Warning)`),
+ h(`span.warning`, ` (` + t('warning') + `)`),
])
}
}