aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorNick Doiron <ndoiron@mapmeld.com>2018-01-25 13:41:29 +0800
committerNick Doiron <ndoiron@mapmeld.com>2018-01-25 13:41:29 +0800
commit9c133aaab30decce16a1bf4120071d4614f99bc8 (patch)
tree55ddba0aa21a5c96aad51edb04566ab8022a18b0 /ui
parent7da52c599784130a5f7b6737f5b017bd3a95c1ed (diff)
downloadtangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar.gz
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar.bz2
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar.lz
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar.xz
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.tar.zst
tangerine-wallet-browser-9c133aaab30decce16a1bf4120071d4614f99bc8.zip
get t imported in all files currently using i18n
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/account-dropdowns.js1
-rw-r--r--ui/app/components/account-export.js1
-rw-r--r--ui/app/components/buy-button-subview.js1
-rw-r--r--ui/app/components/coinbase-form.js1
-rw-r--r--ui/app/components/copyButton.js1
-rw-r--r--ui/app/components/copyable.js1
-rw-r--r--ui/app/components/ens-input.js1
-rw-r--r--ui/app/components/hex-as-decimal-input.js1
-rw-r--r--ui/app/components/network.js1
-rw-r--r--ui/app/components/notice.js1
-rw-r--r--ui/app/components/pending-msg-details.js1
-rw-r--r--ui/app/components/pending-msg.js1
-rw-r--r--ui/app/components/pending-personal-msg-details.js1
-rw-r--r--ui/app/components/pending-typed-msg-details.js1
-rw-r--r--ui/app/components/pending-typed-msg.js1
-rw-r--r--ui/app/components/send-token/index.js1
-rw-r--r--ui/app/components/send/gas-fee-display-v2.js1
-rw-r--r--ui/app/components/send/gas-tooltip.js1
-rw-r--r--ui/app/components/send/to-autocomplete.js1
-rw-r--r--ui/app/components/shapeshift-form.js1
-rw-r--r--ui/app/components/shift-list-item.js1
-rw-r--r--ui/app/components/signature-request.js1
-rw-r--r--ui/app/components/token-list.js1
-rw-r--r--ui/app/components/transaction-list-item.js1
-rw-r--r--ui/app/components/transaction-list.js1
-rw-r--r--ui/app/components/tx-list-item.js1
-rw-r--r--ui/app/components/tx-list.js1
-rw-r--r--ui/app/components/tx-view.js1
-rw-r--r--ui/app/components/wallet-view.js1
-rw-r--r--ui/i18n.js2
30 files changed, 30 insertions, 1 deletions
diff --git a/ui/app/components/account-dropdowns.js b/ui/app/components/account-dropdowns.js
index 3e5805c0e..ede40d3f2 100644
--- a/ui/app/components/account-dropdowns.js
+++ b/ui/app/components/account-dropdowns.js
@@ -9,6 +9,7 @@ const DropdownMenuItem = require('./dropdown').DropdownMenuItem
const Identicon = require('./identicon')
const ethUtil = require('ethereumjs-util')
const copyToClipboard = require('copy-to-clipboard')
+const t = require('../../i18n')
class AccountDropdowns extends Component {
constructor (props) {
diff --git a/ui/app/components/account-export.js b/ui/app/components/account-export.js
index 346872a97..25f36da58 100644
--- a/ui/app/components/account-export.js
+++ b/ui/app/components/account-export.js
@@ -6,6 +6,7 @@ const copyToClipboard = require('copy-to-clipboard')
const actions = require('../actions')
const ethUtil = require('ethereumjs-util')
const connect = require('react-redux').connect
+const t = require('../../i18n')
module.exports = connect(mapStateToProps)(ExportAccountView)
diff --git a/ui/app/components/buy-button-subview.js b/ui/app/components/buy-button-subview.js
index 76da4fc9d..6f2c74b6d 100644
--- a/ui/app/components/buy-button-subview.js
+++ b/ui/app/components/buy-button-subview.js
@@ -9,6 +9,7 @@ const Loading = require('./loading')
const AccountPanel = require('./account-panel')
const RadioList = require('./custom-radio-list')
const networkNames = require('../../../app/scripts/config.js').networkNames
+const t = require('../../i18n')
module.exports = connect(mapStateToProps)(BuyButtonSubview)
diff --git a/ui/app/components/coinbase-form.js b/ui/app/components/coinbase-form.js
index 6532cb3bf..e442b43d5 100644
--- a/ui/app/components/coinbase-form.js
+++ b/ui/app/components/coinbase-form.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const connect = require('react-redux').connect
const actions = require('../actions')
+const t = require('../../i18n')
module.exports = connect(mapStateToProps)(CoinbaseForm)
diff --git a/ui/app/components/copyButton.js b/ui/app/components/copyButton.js
index 5d5be8feb..355f78d45 100644
--- a/ui/app/components/copyButton.js
+++ b/ui/app/components/copyButton.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const copyToClipboard = require('copy-to-clipboard')
+const t = require('../../i18n')
const Tooltip = require('./tooltip')
diff --git a/ui/app/components/copyable.js b/ui/app/components/copyable.js
index 690e44153..fca7d3863 100644
--- a/ui/app/components/copyable.js
+++ b/ui/app/components/copyable.js
@@ -4,6 +4,7 @@ const inherits = require('util').inherits
const Tooltip = require('./tooltip')
const copyToClipboard = require('copy-to-clipboard')
+const t = require('../../i18n')
module.exports = Copyable
diff --git a/ui/app/components/ens-input.js b/ui/app/components/ens-input.js
index 3e7a23369..add67ea35 100644
--- a/ui/app/components/ens-input.js
+++ b/ui/app/components/ens-input.js
@@ -8,6 +8,7 @@ const ENS = require('ethjs-ens')
const networkMap = require('ethjs-ens/lib/network-map.json')
const ensRE = /.+\..+$/
const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
+const t = require('../../i18n')
module.exports = EnsInput
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js
index 07432a1f2..992d8c8cd 100644
--- a/ui/app/components/hex-as-decimal-input.js
+++ b/ui/app/components/hex-as-decimal-input.js
@@ -4,6 +4,7 @@ const inherits = require('util').inherits
const ethUtil = require('ethereumjs-util')
const BN = ethUtil.BN
const extend = require('xtend')
+const t = require('../../i18n')
module.exports = HexAsDecimalInput
diff --git a/ui/app/components/network.js b/ui/app/components/network.js
index 6cb1ff53d..f3df2242a 100644
--- a/ui/app/components/network.js
+++ b/ui/app/components/network.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const classnames = require('classnames')
const inherits = require('util').inherits
const NetworkDropdownIcon = require('./dropdowns/components/network-dropdown-icon')
+const t = require('../../i18n')
module.exports = Network
diff --git a/ui/app/components/notice.js b/ui/app/components/notice.js
index 5bda329ed..390639297 100644
--- a/ui/app/components/notice.js
+++ b/ui/app/components/notice.js
@@ -4,6 +4,7 @@ const h = require('react-hyperscript')
const ReactMarkdown = require('react-markdown')
const linker = require('extension-link-enabler')
const findDOMNode = require('react-dom').findDOMNode
+const t = require('../../i18n')
module.exports = Notice
diff --git a/ui/app/components/pending-msg-details.js b/ui/app/components/pending-msg-details.js
index 3ea063c3c..b66657f3b 100644
--- a/ui/app/components/pending-msg-details.js
+++ b/ui/app/components/pending-msg-details.js
@@ -1,6 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
+const t = require('../../i18n')
const AccountPanel = require('./account-panel')
diff --git a/ui/app/components/pending-msg.js b/ui/app/components/pending-msg.js
index 236849c18..dc406b955 100644
--- a/ui/app/components/pending-msg.js
+++ b/ui/app/components/pending-msg.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const PendingTxDetails = require('./pending-msg-details')
+const t = require('../../i18n')
module.exports = PendingMsg
diff --git a/ui/app/components/pending-personal-msg-details.js b/ui/app/components/pending-personal-msg-details.js
index 30c475347..d21689f86 100644
--- a/ui/app/components/pending-personal-msg-details.js
+++ b/ui/app/components/pending-personal-msg-details.js
@@ -1,6 +1,7 @@
const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
+const t = require('../../i18n')
const AccountPanel = require('./account-panel')
const BinaryRenderer = require('./binary-renderer')
diff --git a/ui/app/components/pending-typed-msg-details.js b/ui/app/components/pending-typed-msg-details.js
index a3381174d..9708ed1d7 100644
--- a/ui/app/components/pending-typed-msg-details.js
+++ b/ui/app/components/pending-typed-msg-details.js
@@ -4,6 +4,7 @@ const inherits = require('util').inherits
const AccountPanel = require('./account-panel')
const TypedMessageRenderer = require('./typed-message-renderer')
+const t = require('../../i18n')
module.exports = PendingMsgDetails
diff --git a/ui/app/components/pending-typed-msg.js b/ui/app/components/pending-typed-msg.js
index f0f846027..3d473f47d 100644
--- a/ui/app/components/pending-typed-msg.js
+++ b/ui/app/components/pending-typed-msg.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const PendingTxDetails = require('./pending-typed-msg-details')
+const t = require('../../i18n')
module.exports = PendingMsg
diff --git a/ui/app/components/send-token/index.js b/ui/app/components/send-token/index.js
index a40664977..2ad7c9dd0 100644
--- a/ui/app/components/send-token/index.js
+++ b/ui/app/components/send-token/index.js
@@ -7,6 +7,7 @@ const inherits = require('util').inherits
const actions = require('../../actions')
const selectors = require('../../selectors')
const { isValidAddress, allNull } = require('../../util')
+const t = require('../../../i18n')
// const BalanceComponent = require('./balance-component')
const Identicon = require('../identicon')
diff --git a/ui/app/components/send/gas-fee-display-v2.js b/ui/app/components/send/gas-fee-display-v2.js
index edaa297b9..0c6f76303 100644
--- a/ui/app/components/send/gas-fee-display-v2.js
+++ b/ui/app/components/send/gas-fee-display-v2.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const CurrencyDisplay = require('./currency-display')
+const t = require('../../../i18n')
module.exports = GasFeeDisplay
diff --git a/ui/app/components/send/gas-tooltip.js b/ui/app/components/send/gas-tooltip.js
index da2a53c9e..d925d3ed8 100644
--- a/ui/app/components/send/gas-tooltip.js
+++ b/ui/app/components/send/gas-tooltip.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const InputNumber = require('../input-number.js')
+const t = require('../../../i18n')
module.exports = GasTooltip
diff --git a/ui/app/components/send/to-autocomplete.js b/ui/app/components/send/to-autocomplete.js
index 85e7bfa0e..72074229e 100644
--- a/ui/app/components/send/to-autocomplete.js
+++ b/ui/app/components/send/to-autocomplete.js
@@ -2,6 +2,7 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const inherits = require('util').inherits
const AccountListItem = require('./account-list-item')
+const t = require('../../../i18n')
module.exports = ToAutoComplete
diff --git a/ui/app/components/shapeshift-form.js b/ui/app/components/shapeshift-form.js
index 773ff227c..329feb38f 100644
--- a/ui/app/components/shapeshift-form.js
+++ b/ui/app/components/shapeshift-form.js
@@ -7,6 +7,7 @@ const { qrcode } = require('qrcode-npm')
const { shapeShiftSubview, pairUpdate, buyWithShapeShift } = require('../actions')
const { isValidAddress } = require('../util')
const SimpleDropdown = require('./dropdowns/simple-dropdown')
+const t = require('../../i18n')
function mapStateToProps (state) {
const {
diff --git a/ui/app/components/shift-list-item.js b/ui/app/components/shift-list-item.js
index 6e5be641f..21d41a06c 100644
--- a/ui/app/components/shift-list-item.js
+++ b/ui/app/components/shift-list-item.js
@@ -6,6 +6,7 @@ const vreme = new (require('vreme'))()
const explorerLink = require('etherscan-link').createExplorerLink
const actions = require('../actions')
const addressSummary = require('../util').addressSummary
+const t = require('../../i18n')
const CopyButton = require('./copyButton')
const EthBalance = require('./eth-balance')
diff --git a/ui/app/components/signature-request.js b/ui/app/components/signature-request.js
index 8003f8b1d..d0e568bca 100644
--- a/ui/app/components/signature-request.js
+++ b/ui/app/components/signature-request.js
@@ -9,6 +9,7 @@ const classnames = require('classnames')
const AccountDropdownMini = require('./dropdowns/account-dropdown-mini')
const actions = require('../actions')
+const t = require('../../i18n')
const { conversionUtil } = require('../conversion-util')
const {
diff --git a/ui/app/components/token-list.js b/ui/app/components/token-list.js
index a25566e64..01529aeda 100644
--- a/ui/app/components/token-list.js
+++ b/ui/app/components/token-list.js
@@ -5,6 +5,7 @@ const TokenTracker = require('eth-token-tracker')
const TokenCell = require('./token-cell.js')
const connect = require('react-redux').connect
const selectors = require('../selectors')
+const t = require('../../i18n')
function mapStateToProps (state) {
return {
diff --git a/ui/app/components/transaction-list-item.js b/ui/app/components/transaction-list-item.js
index 10d4236cb..6baf60141 100644
--- a/ui/app/components/transaction-list-item.js
+++ b/ui/app/components/transaction-list-item.js
@@ -11,6 +11,7 @@ const vreme = new (require('vreme'))()
const Tooltip = require('./tooltip')
const numberToBN = require('number-to-bn')
const actions = require('../actions')
+const t = require('../../i18n')
const TransactionIcon = require('./transaction-list-item-icon')
const ShiftListItem = require('./shift-list-item')
diff --git a/ui/app/components/transaction-list.js b/ui/app/components/transaction-list.js
index cb3f8097b..07f7a06ae 100644
--- a/ui/app/components/transaction-list.js
+++ b/ui/app/components/transaction-list.js
@@ -3,6 +3,7 @@ const h = require('react-hyperscript')
const inherits = require('util').inherits
const TransactionListItem = require('./transaction-list-item')
+const t = require('../../i18n')
module.exports = TransactionList
diff --git a/ui/app/components/tx-list-item.js b/ui/app/components/tx-list-item.js
index d53277925..7a38096b6 100644
--- a/ui/app/components/tx-list-item.js
+++ b/ui/app/components/tx-list-item.js
@@ -13,6 +13,7 @@ const { conversionUtil, multiplyCurrencies } = require('../conversion-util')
const { calcTokenAmount } = require('../token-util')
const { getCurrentCurrency } = require('../selectors')
+const t = require('../../i18n')
module.exports = connect(mapStateToProps)(TxListItem)
diff --git a/ui/app/components/tx-list.js b/ui/app/components/tx-list.js
index 6076ab5d3..8343ec46b 100644
--- a/ui/app/components/tx-list.js
+++ b/ui/app/components/tx-list.js
@@ -10,6 +10,7 @@ const { formatDate } = require('../util')
const { showConfTxPage } = require('../actions')
const classnames = require('classnames')
const { tokenInfoGetter } = require('../token-util')
+const t = require('../../i18n')
module.exports = connect(mapStateToProps, mapDispatchToProps)(TxList)
diff --git a/ui/app/components/tx-view.js b/ui/app/components/tx-view.js
index 423234d4f..adc9b8e94 100644
--- a/ui/app/components/tx-view.js
+++ b/ui/app/components/tx-view.js
@@ -5,6 +5,7 @@ const ethUtil = require('ethereumjs-util')
const inherits = require('util').inherits
const actions = require('../actions')
const selectors = require('../selectors')
+const t = require('../../i18n')
const BalanceComponent = require('./balance-component')
const TxList = require('./tx-list')
diff --git a/ui/app/components/wallet-view.js b/ui/app/components/wallet-view.js
index 3d9c01c6e..60a780fc6 100644
--- a/ui/app/components/wallet-view.js
+++ b/ui/app/components/wallet-view.js
@@ -9,6 +9,7 @@ const actions = require('../actions')
const BalanceComponent = require('./balance-component')
const TokenList = require('./token-list')
const selectors = require('../selectors')
+const t = require('../../i18n')
module.exports = connect(mapStateToProps, mapDispatchToProps)(WalletView)
diff --git a/ui/i18n.js b/ui/i18n.js
index e842c9ef9..c2cf9b449 100644
--- a/ui/i18n.js
+++ b/ui/i18n.js
@@ -12,7 +12,7 @@ if ((chrome && chrome.i18n && chrome.i18n.getMessage) ||
let msg = require('../app/_locales/en/messages.json');
getMessage = function(key) {
return msg[key].message;
- });
+ };
}
module.exports = getMessage;