Skip to content

Commit af773a4

Browse files
committed
[ML] Fix i18n
1 parent b55dacc commit af773a4

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

x-pack/plugins/ml/public/application/timeseriesexplorer/components/timeseries_chart/timeseries_chart_with_tooltip.tsx

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,12 @@ export const TimeSeriesChartWithTooltips: FC<TimeSeriesChartWithTooltipsProps> =
4343

4444
const showAnnotationErrorToastNotification = useCallback((error?: string) => {
4545
toastNotifications.addDanger({
46-
title: i18n.translate('xpack.ml.timeSeriesExplorer.annotationsErrorTitle', {
47-
defaultMessage: 'An error occurred fetching annotations',
48-
}),
46+
title: i18n.translate(
47+
'xpack.ml.timeSeriesExplorer.mlSingleMetricViewerChart.annotationsErrorTitle',
48+
{
49+
defaultMessage: 'An error occurred fetching annotations',
50+
}
51+
),
4952
...(error ? { text: extractErrorMessage(error) } : {}),
5053
});
5154
}, []);

0 commit comments

Comments
 (0)