diff options
author | kumavis <aaron@kumavis.me> | 2018-03-14 05:49:26 +0800 |
---|---|---|
committer | kumavis <aaron@kumavis.me> | 2018-03-14 05:49:26 +0800 |
commit | e48934dc04f94ef66ebb69a26105ce9bbf5f3842 (patch) | |
tree | ffc35395cfbb2b3dbbe254ec87dc6d1eff708ef7 /ui/app/components/hex-as-decimal-input.js | |
parent | a88e436b7d45d9a7f9f4d4a4be58aff5e58e9074 (diff) | |
parent | 239d7106abe39b3a16871442b30edeac54b1bef4 (diff) | |
download | tangerine-wallet-browser-e48934dc04f94ef66ebb69a26105ce9bbf5f3842.tar.gz tangerine-wallet-browser-e48934dc04f94ef66ebb69a26105ce9bbf5f3842.tar.zst tangerine-wallet-browser-e48934dc04f94ef66ebb69a26105ce9bbf5f3842.zip |
Merge branch 'master' of github.com:MetaMask/metamask-extension into i3076-UseStorageLocalInstead
Diffstat (limited to 'ui/app/components/hex-as-decimal-input.js')
-rw-r--r-- | ui/app/components/hex-as-decimal-input.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/hex-as-decimal-input.js b/ui/app/components/hex-as-decimal-input.js index 4a71e9585..a43d44f89 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 @@ -126,13 +127,13 @@ HexAsDecimalInput.prototype.constructWarning = function () { let message = name ? name + ' ' : '' if (min && max) { - message += `must be greater than or equal to ${min} and less than or equal to ${max}.` + message += t('betweenMinAndMax', [min, max]) } else if (min) { - message += `must be greater than or equal to ${min}.` + message += t('greaterThanMin', [min]) } else if (max) { - message += `must be less than or equal to ${max}.` + message += t('lessThanMax', [max]) } else { - message += 'Invalid input.' + message += t('invalidInput') } return message |