Skip to content

Commit

Permalink
[ML] Fix i18n
Browse files Browse the repository at this point in the history
  • Loading branch information
qn895 committed Nov 2, 2020
1 parent b55dacc commit af773a4
Showing 1 changed file with 6 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,12 @@ export const TimeSeriesChartWithTooltips: FC<TimeSeriesChartWithTooltipsProps> =

const showAnnotationErrorToastNotification = useCallback((error?: string) => {
toastNotifications.addDanger({
title: i18n.translate('xpack.ml.timeSeriesExplorer.annotationsErrorTitle', {
defaultMessage: 'An error occurred fetching annotations',
}),
title: i18n.translate(
'xpack.ml.timeSeriesExplorer.mlSingleMetricViewerChart.annotationsErrorTitle',
{
defaultMessage: 'An error occurred fetching annotations',
}
),
...(error ? { text: extractErrorMessage(error) } : {}),
});
}, []);
Expand Down

0 comments on commit af773a4

Please sign in to comment.