mirror of
https://github.com/zoriya/flood.git
synced 2026-05-25 00:13:18 +00:00
Add 'ago' to language file
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import classnames from 'classnames';
|
||||
import {defineMessages, FormattedMessage, injectIntl} from 'react-intl';
|
||||
import React from 'react';
|
||||
|
||||
import Download from '../Icons/Download';
|
||||
@@ -7,6 +8,13 @@ import InfinityIcon from '../Icons/InfinityIcon';
|
||||
import Size from '../General/Size';
|
||||
import Upload from '../Icons/Upload';
|
||||
|
||||
const messages = defineMessages({
|
||||
ago: {
|
||||
id: 'general.ago',
|
||||
defaultMessage: 'ago'
|
||||
}
|
||||
});
|
||||
|
||||
const icons = {
|
||||
download: <Download />,
|
||||
infinity: <InfinityIcon />,
|
||||
@@ -58,7 +66,7 @@ class TransferRateDetails extends React.Component {
|
||||
if (this.state.timestamp != null) {
|
||||
timestamp = (
|
||||
<div className={timestampClasses}>
|
||||
<Duration suffix="ago"
|
||||
<Duration suffix={this.props.intl.formatMessage(messages.ago)}
|
||||
value={this.state.timestamp} />
|
||||
</div>
|
||||
);
|
||||
@@ -105,4 +113,4 @@ class TransferRateDetails extends React.Component {
|
||||
}
|
||||
}
|
||||
|
||||
export default TransferRateDetails;
|
||||
export default injectIntl(TransferRateDetails);
|
||||
|
||||
@@ -91,6 +91,7 @@ export default {
|
||||
'filter.tag.title': 'Filter by Tag',
|
||||
'filter.untagged': 'Untagged',
|
||||
|
||||
'general.ago': 'ago',
|
||||
'general.at': 'at',
|
||||
'general.to': 'to',
|
||||
'general.of': 'of',
|
||||
|
||||
Reference in New Issue
Block a user