From 334fc6a68aed2c7a6181498d71619f00c88fb3bc Mon Sep 17 00:00:00 2001 From: Krishna Dhakal <7krishna7dhakal7@gmail.com> Date: Thu, 12 Oct 2023 15:10:48 +0545 Subject: [PATCH] i18n: Markup Explorer Graph for translation (#76099) --- .../app/features/explore/Graph/GraphContainer.tsx | 14 ++++++++++---- public/locales/de-DE/grafana.json | 8 ++++++++ public/locales/en-US/grafana.json | 8 ++++++++ public/locales/es-ES/grafana.json | 8 ++++++++ public/locales/fr-FR/grafana.json | 8 ++++++++ public/locales/pseudo-LOCALE/grafana.json | 8 ++++++++ public/locales/zh-Hans/grafana.json | 8 ++++++++ 7 files changed, 58 insertions(+), 4 deletions(-) diff --git a/public/app/features/explore/Graph/GraphContainer.tsx b/public/app/features/explore/Graph/GraphContainer.tsx index bc8cc45ddbe..19edc6aff48 100644 --- a/public/app/features/explore/Graph/GraphContainer.tsx +++ b/public/app/features/explore/Graph/GraphContainer.tsx @@ -21,6 +21,7 @@ import { useStyles2, Tooltip, } from '@grafana/ui'; +import { t, Trans } from 'app/core/internationalization'; import { ExploreGraphStyle } from 'app/types'; import { storeGraphStyle } from '../state/utils'; @@ -76,19 +77,24 @@ export const GraphContainer = ({ return ( diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 9f6aa35d392..ec68dffd9ad 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -374,6 +374,14 @@ "placeholder": "" } }, + "graph": { + "container": { + "content": "", + "show-all-series": "", + "show-only-series": "", + "title": "" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "", diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 40f90682684..6422a2a423f 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -374,6 +374,14 @@ "placeholder": "Choose" } }, + "graph": { + "container": { + "content": "Rendering too many series in a single panel may impact performance and make data harder to read. Consider refining your queries.", + "show-all-series": "Show all {{length}}", + "show-only-series": "Showing only {{MAX_NUMBER_OF_TIME_SERIES}} series", + "title": "Graph" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "Dashboard", diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index 0fa848259d1..b8a17d435b2 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -379,6 +379,14 @@ "placeholder": "" } }, + "graph": { + "container": { + "content": "", + "show-all-series": "", + "show-only-series": "", + "title": "" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "", diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index 13a678be1b2..d61babbf93d 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -379,6 +379,14 @@ "placeholder": "" } }, + "graph": { + "container": { + "content": "", + "show-all-series": "", + "show-only-series": "", + "title": "" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "", diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 12d900228c1..0ee6280028e 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -374,6 +374,14 @@ "placeholder": "Cĥőőşę" } }, + "graph": { + "container": { + "content": "Ŗęʼnđęřįʼnģ ŧőő mäʼny şęřįęş įʼn ä şįʼnģľę päʼnęľ mäy įmpäčŧ pęřƒőřmäʼnčę äʼnđ mäĸę đäŧä ĥäřđęř ŧő řęäđ. Cőʼnşįđęř řęƒįʼnįʼnģ yőūř qūęřįęş.", + "show-all-series": "Ŝĥőŵ äľľ {{length}}", + "show-only-series": "Ŝĥőŵįʼnģ őʼnľy {{MAX_NUMBER_OF_TIME_SERIES}} şęřįęş", + "title": "Ğřäpĥ" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "Đäşĥþőäřđ", diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index 27adff77cae..d8495004414 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -369,6 +369,14 @@ "placeholder": "" } }, + "graph": { + "container": { + "content": "", + "show-all-series": "", + "show-only-series": "", + "title": "" + } + }, "help-modal": { "shortcuts-category": { "dashboard": "",