diff --git a/src/plugins/discover/public/application/components/doc_views/context/utils/use_query_actions.ts b/src/plugins/discover/public/application/components/doc_views/context/utils/use_query_actions.ts index 2b96707daf56..8d4276aaaf2f 100644 --- a/src/plugins/discover/public/application/components/doc_views/context/utils/use_query_actions.ts +++ b/src/plugins/discover/public/application/components/doc_views/context/utils/use_query_actions.ts @@ -131,7 +131,7 @@ export function useQueryActions(anchorId: string, indexPattern: IndexPattern) { })); } toastNotifications.addDanger({ - title: i18n.translate('discover.context.unableToLoadDocumentDescription', { + title: i18n.translate('discover.context.unableToLoadSurroundingDocumentDescription', { defaultMessage: 'Unable to fetch surrounding documents', }), text: 'fail', diff --git a/src/plugins/discover/public/application/components/doc_views/single_doc_app.tsx b/src/plugins/discover/public/application/components/doc_views/single_doc_app.tsx index 071e87586862..4fca5e130738 100644 --- a/src/plugins/discover/public/application/components/doc_views/single_doc_app.tsx +++ b/src/plugins/discover/public/application/components/doc_views/single_doc_app.tsx @@ -52,7 +52,7 @@ export function SingleDocApp() { ...getRootBreadcrumbs(), { text: i18n.translate('discover.single.breadcrumb', { - defaultMessage: `${index}#${docId}`, + defaultMessage: '{index}#{docId}', values: { index, docId, diff --git a/src/plugins/discover/public/application/view_components/utils/index_pattern_helper.ts b/src/plugins/discover/public/application/view_components/utils/index_pattern_helper.ts index d6285594367e..2db2b6111868 100644 --- a/src/plugins/discover/public/application/view_components/utils/index_pattern_helper.ts +++ b/src/plugins/discover/public/application/view_components/utils/index_pattern_helper.ts @@ -76,9 +76,9 @@ export function resolveIndexPattern( if (stateVal && !stateValFound) { const warningTitle = i18n.translate('discover.valueIsNotConfiguredIndexPatternIDWarningTitle', { - defaultMessage: '{stateVal} is not a configured index pattern ID', + defaultMessage: '{id} is not a configured index pattern ID', values: { - stateVal: `"${stateVal}"`, + id: `"${stateVal}"`, }, });