diff --git a/.i18nrc.json b/.i18nrc.json
index 30301d72f36e..8ac1cf0fbd1e 100644
--- a/.i18nrc.json
+++ b/.i18nrc.json
@@ -4,6 +4,7 @@
"inputControl":"src/core_plugins/input_control_vis",
"kbn": "src/core_plugins/kibana",
"markdownVis": "src/core_plugins/markdown_vis",
+ "metricVis": "src/core_plugins/metric_vis",
"statusPage": "src/core_plugins/status_page",
"xpack.idxMgmt": "x-pack/plugins/index_management"
},
diff --git a/src/core_plugins/metric_vis/public/metric_vis.js b/src/core_plugins/metric_vis/public/metric_vis.js
index 167a9b55f9e0..a8869e1a27d3 100644
--- a/src/core_plugins/metric_vis/public/metric_vis.js
+++ b/src/core_plugins/metric_vis/public/metric_vis.js
@@ -32,16 +32,16 @@ import { MetricVisComponent } from './metric_vis_controller';
// register the provider with the visTypes registry
VisTypesRegistryProvider.register(MetricVisProvider);
-function MetricVisProvider(Private) {
+function MetricVisProvider(Private, i18n) {
const VisFactory = Private(VisFactoryProvider);
// return the visType object, which kibana will use to display and configure new
// Vis object of this type.
return VisFactory.createReactVisualization({
name: 'metric',
- title: 'Metric',
+ title: i18n('metricVis.metricTitle', { defaultMessage: 'Metric' }),
icon: 'visMetric',
- description: 'Display a calculation as a single number',
+ description: i18n('metricVis.metricDescription', { defaultMessage: 'Display a calculation as a single number' }),
category: CATEGORY.DATA,
visConfig: {
component: MetricVisComponent,
@@ -73,7 +73,20 @@ function MetricVisProvider(Private) {
},
editorConfig: {
collections: {
- metricColorMode: ['None', 'Labels', 'Background'],
+ metricColorMode: [
+ {
+ id: 'None',
+ label: i18n('metricVis.colorModes.noneOptionLabel', { defaultMessage: 'None' })
+ },
+ {
+ id: 'Labels',
+ label: i18n('metricVis.colorModes.labelsOptionLabel', { defaultMessage: 'Labels' })
+ },
+ {
+ id: 'Background',
+ label: i18n('metricVis.colorModes.backgroundOptionLabel', { defaultMessage: 'Background' })
+ }
+ ],
colorSchemas: Object.keys(vislibColorMaps),
},
optionsTemplate: '