diff options
author | Nick Doiron <ndoiron@mapmeld.com> | 2018-01-30 04:29:01 +0800 |
---|---|---|
committer | Nick Doiron <ndoiron@mapmeld.com> | 2018-01-30 04:29:01 +0800 |
commit | abfa74f09a0119345165a32090d88a1d95df6c80 (patch) | |
tree | 0b826ccd552f3c31524d2dc1c970ea0ddcb1083b /ui/app/components/bn-as-decimal-input.js | |
parent | 1698541bcdce6c2933c8b3b4e1c89e2f391c3a68 (diff) | |
download | tangerine-wallet-browser-abfa74f09a0119345165a32090d88a1d95df6c80.tar.gz tangerine-wallet-browser-abfa74f09a0119345165a32090d88a1d95df6c80.tar.zst tangerine-wallet-browser-abfa74f09a0119345165a32090d88a1d95df6c80.zip |
complete i18n across new UI
Diffstat (limited to 'ui/app/components/bn-as-decimal-input.js')
-rw-r--r-- | ui/app/components/bn-as-decimal-input.js | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/ui/app/components/bn-as-decimal-input.js b/ui/app/components/bn-as-decimal-input.js index 22e37602e..70701b039 100644 --- a/ui/app/components/bn-as-decimal-input.js +++ b/ui/app/components/bn-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 = BnAsDecimalInput @@ -136,13 +137,13 @@ BnAsDecimalInput.prototype.constructWarning = function () { let message = name ? name + ' ' : '' if (min && max) { - message += `must be greater than or equal to ${newMin} ${suffix} and less than or equal to ${newMax} ${suffix}.` + message += t('betweenMinAndMax', [`${newMin} ${suffix}`, `${newMax} ${suffix}`]) } else if (min) { - message += `must be greater than or equal to ${newMin} ${suffix}.` + message += t('greaterThanMin', [`${newMin} ${suffix}`]) } else if (max) { - message += `must be less than or equal to ${newMax} ${suffix}.` + message += t('lessThanMax', [`${newMax} ${suffix}`]) } else { - message += 'Invalid input.' + message += t('invalidInput') } return message |