diff --git a/src/plugins/vis_type_vislib/public/vislib/errors.ts b/src/plugins/vis_type_vislib/public/vislib/errors.ts
index c2965e816575..b047d0900cd4 100644
--- a/src/plugins/vis_type_vislib/public/vislib/errors.ts
+++ b/src/plugins/vis_type_vislib/public/vislib/errors.ts
@@ -19,6 +19,7 @@
/* eslint-disable max-classes-per-file */
+import { i18n } from '@kbn/i18n';
import { KbnError } from '../../../kibana_utils/public';
export class VislibError extends KbnError {
@@ -51,6 +52,10 @@ export class PieContainsAllZeros extends VislibError {
export class NoResults extends VislibError {
constructor() {
- super('No results found');
+ super(
+ i18n.translate('visTypeVislib.vislib.errors.noResultsFoundTitle', {
+ defaultMessage: 'No results found',
+ })
+ );
}
}
diff --git a/src/plugins/visualizations/public/components/visualization_noresults.tsx b/src/plugins/visualizations/public/components/visualization_noresults.tsx
index 1b45463f1d2e..c77ef4490a4b 100644
--- a/src/plugins/visualizations/public/components/visualization_noresults.tsx
+++ b/src/plugins/visualizations/public/components/visualization_noresults.tsx
@@ -18,6 +18,7 @@
*/
import { EuiIcon, EuiSpacer, EuiText } from '@elastic/eui';
+import { i18n } from '@kbn/i18n';
import React from 'react';
interface VisualizationNoResultsProps {
@@ -37,7 +38,11 @@ export class VisualizationNoResults extends React.Component
No results found
++ {i18n.translate('visualizations.noResultsFoundTitle', { + defaultMessage: 'No results found', + })} +