Skip to content

Commit

Permalink
[ML] Fix earliest and latest texts for date fields
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Jan 6, 2021
1 parent 57afacf commit fb3a7cd
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,19 @@ export const DateContent: FC<FieldDataCardProps> = ({ config }) => {
{
function: 'earliest',
display: (
<FormattedMessage id="xpack.ml.fieldDataCard.cardDate.minLabel" defaultMessage="min" />
<FormattedMessage
id="xpack.ml.fieldDataCard.cardDate.earliestLabel"
defaultMessage="earliest"
/>
),
value: formatDate(earliest, TIME_FORMAT),
},
{
function: 'latest',
display: (
<FormattedMessage
id="xpack.ml.fieldDataCard.cardDate.medianLabel"
defaultMessage="median"
id="xpack.ml.fieldDataCard.cardDate.latestLabel"
defaultMessage="latest"
/>
),
value: formatDate(latest, TIME_FORMAT),
Expand Down

0 comments on commit fb3a7cd

Please sign in to comment.