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:
@@ -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>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user