From 2b7b6226e24deedd369c52ac9a01da886d418746 Mon Sep 17 00:00:00 2001 From: Melissa Date: Thu, 1 Sep 2022 16:22:05 -0600 Subject: [PATCH] fix localization messages --- .../spike_analysis_table/spike_analysis_table.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/x-pack/plugins/aiops/public/components/spike_analysis_table/spike_analysis_table.tsx b/x-pack/plugins/aiops/public/components/spike_analysis_table/spike_analysis_table.tsx index 306d9e0797d04..03d2dc712dd4e 100644 --- a/x-pack/plugins/aiops/public/components/spike_analysis_table/spike_analysis_table.tsx +++ b/x-pack/plugins/aiops/public/components/spike_analysis_table/spike_analysis_table.tsx @@ -77,7 +77,7 @@ export const SpikeAnalysisTable: FC = ({ useEffect(() => { if (!application.capabilities.discover?.show) { const discoverNotEnabled = i18n.translate( - 'xpack.ml.anomaliesTable.linksMenu.discoverNotEnabledErrorMessage', + 'xpack.aiops.spikeAnalysisTable.discoverNotEnabledErrorMessage', { defaultMessage: 'Discover is not enabled', } @@ -88,7 +88,7 @@ export const SpikeAnalysisTable: FC = ({ } if (!discoverLocator) { const discoverLocatorMissing = i18n.translate( - 'xpack.ml.anomaliesTable.linksMenu.discoverLocatorMissingErrorMessage', + 'xpack.aiops.spikeAnalysisTable.discoverLocatorMissingErrorMessage', { defaultMessage: 'No locator for Discover detected', } @@ -99,7 +99,7 @@ export const SpikeAnalysisTable: FC = ({ } if (!dataViewId) { const autoGeneratedDiscoverLinkError = i18n.translate( - 'xpack.ml.anomaliesTable.linksMenu.autoGeneratedDiscoverLinkErrorMessage', + 'xpack.aiops.spikeAnalysisTable.autoGeneratedDiscoverLinkErrorMessage', { defaultMessage: 'Unable to link to Discover; no data view exists for this index', } @@ -238,8 +238,8 @@ export const SpikeAnalysisTable: FC = ({ sortable: true, }, { - 'data-test-subj': 'mlAnomaliesListColumnAction', - name: i18n.translate('xpack.ml.anomaliesTable.actionsColumnName', { + 'data-test-subj': 'aiOpsSpikeAnalysisTableColumnAction', + name: i18n.translate('xpack.aiops.spikeAnalysisTable.actionsColumnName', { defaultMessage: 'Actions', }), actions: [