diff --git a/src/legacy/core_plugins/kibana/public/context/api/anchor.js b/src/legacy/core_plugins/kibana/public/context/api/anchor.js index 4c541845251f6..c1d4823346b16 100644 --- a/src/legacy/core_plugins/kibana/public/context/api/anchor.js +++ b/src/legacy/core_plugins/kibana/public/context/api/anchor.js @@ -21,7 +21,7 @@ import _ from 'lodash'; import { SearchSourceProvider } from 'ui/courier'; -export function fetchAnchorProvider(indexPatterns, Private) { +export function fetchAnchorProvider(indexPatterns, Private, i18n) { const SearchSource = Private(SearchSourceProvider); return async function fetchAnchor( @@ -54,7 +54,9 @@ export function fetchAnchorProvider(indexPatterns, Private) { const response = await searchSource.fetch(); if (_.get(response, ['hits', 'total'], 0) < 1) { - throw new Error('Failed to load anchor document.'); + throw new Error(i18n('kbn.context.failedToLoadAnchorDocumentErrorDescription', { + defaultMessage: 'Failed to load anchor document.' + })); } return { diff --git a/src/legacy/core_plugins/kibana/public/context/app.html b/src/legacy/core_plugins/kibana/public/context/app.html index e1bca77170672..022e343df0a79 100644 --- a/src/legacy/core_plugins/kibana/public/context/app.html +++ b/src/legacy/core_plugins/kibana/public/context/app.html @@ -1,9 +1,16 @@