From 97f4079f0c199d4dda37905a4043e0371e2b669a Mon Sep 17 00:00:00 2001 From: dej611 Date: Mon, 11 Oct 2021 12:30:11 +0200 Subject: [PATCH] :globe_with_meridians: Add i18n --- src/plugins/vis_types/vega/public/data_model/vega_parser.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/plugins/vis_types/vega/public/data_model/vega_parser.ts b/src/plugins/vis_types/vega/public/data_model/vega_parser.ts index 57fe6e614dc71..bf2a6be25c71a 100644 --- a/src/plugins/vis_types/vega/public/data_model/vega_parser.ts +++ b/src/plugins/vis_types/vega/public/data_model/vega_parser.ts @@ -578,7 +578,10 @@ The URL is an identifier only. Kibana and your browser will never access this UR return { isVegaLite, libVersion }; } catch (e) { throw Error( - 'The URL for the JSON "$schema" is incorrect. Correct the URL, then click Update.' + i18n.translate('visTypeVega.vegaParser.notValidSchemaForInputSpec', { + defaultMessage: + 'The URL for the JSON "$schema" is incorrect. Correct the URL, then click Update.', + }) ); } }