Extract i18n from shared UI components (#4834)

* Actionbar i18n

* ui Errors i18n

* Features i18n

* GapPriceSelector i18n

* WIP

* WIP #2

* Update methodDecoding

* ModalBox -> functional

* Signer pages i18n (missed previously)

* Update ModalBox tests

* Update variable
This commit is contained in:
Jaco Greeff
2017-03-10 12:04:40 +01:00
committed by GitHub
parent d98b7aab61
commit 4e5fd92e67
13 changed files with 452 additions and 199 deletions

View File

@@ -15,6 +15,7 @@
// along with Parity. If not, see <http://www.gnu.org/licenses/>.
import React, { Component, PropTypes } from 'react';
import { FormattedMessage } from 'react-intl';
export default class CustomTooltip extends Component {
static propTypes = {
@@ -41,11 +42,15 @@ export default class CustomTooltip extends Component {
return (
<div>
<p className='label'>
{ count.toNumber() } transactions
with gas price set from
<span> { minprice.toFormat(0) } </span>
to
<span> { maxprice.toFormat(0) } </span>
<FormattedMessage
id='ui.gasPriceSelector.customTooltip.transactions'
defaultMessage='{number} {number, plural, one {transaction} other {transactions}} with gas price set from {minPrice} to {maxPrice}'
values={ {
number: count.toNumber(),
minPrice: <span>{ minprice.toFormat(0) }</span>,
maxPrice: <span>{ maxprice.toFormat(0) }</span>
} }
/>
</p>
</div>
);