Skip to content

Commit

Permalink
fixed i18n lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
gmmorris committed Apr 21, 2020
1 parent b4a821e commit 28ac631
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -79,13 +79,17 @@ export function getActionType(): ActionTypeModel {
}
if (actionParams.timestamp && !hasMustacheTokens(actionParams.timestamp)) {
if (isNaN(Date.parse(actionParams.timestamp))) {
const { nowShortFormat, nowLongFormat } = getValidTimestampExamples();
errors.timestamp.push(
i18n.translate(
'xpack.triggersActionsUI.components.builtinActionTypes.pagerDutyAction.error.invalidTimestamp',
{
defaultMessage:
'Timestamp must be a valid date, such as {nowShortFormat} or {nowLongFormat}.',
values: getValidTimestampExamples(),
values: {
nowShortFormat,
nowLongFormat,
},
}
)
);
Expand Down

0 comments on commit 28ac631

Please sign in to comment.