From 5ba37068c29b8d0e48833d5ced83c6a2a5126e9a Mon Sep 17 00:00:00 2001 From: Krishna Dhakal <7krishna7dhakal7@gmail.com> Date: Fri, 29 Sep 2023 20:24:55 +0545 Subject: [PATCH] i18n: Mark up SnapshotListTable for translations (#75621) * markup snapshot list table * final revision changes --- .../components/SnapshotListTable.tsx | 19 +++++++++++++++---- public/locales/de-DE/grafana.json | 6 ++++++ public/locales/en-US/grafana.json | 6 ++++++ public/locales/es-ES/grafana.json | 6 ++++++ public/locales/fr-FR/grafana.json | 6 ++++++ public/locales/pseudo-LOCALE/grafana.json | 6 ++++++ public/locales/zh-Hans/grafana.json | 6 ++++++ 7 files changed, 51 insertions(+), 4 deletions(-) diff --git a/public/app/features/manage-dashboards/components/SnapshotListTable.tsx b/public/app/features/manage-dashboards/components/SnapshotListTable.tsx index 27f85957d62..843a37b17e6 100644 --- a/public/app/features/manage-dashboards/components/SnapshotListTable.tsx +++ b/public/app/features/manage-dashboards/components/SnapshotListTable.tsx @@ -3,6 +3,7 @@ import useAsync from 'react-use/lib/useAsync'; import { getBackendSrv, config } from '@grafana/runtime'; import { ConfirmModal, Button, LinkButton } from '@grafana/ui'; +import { Trans } from 'app/core/internationalization'; import { Snapshot } from '../types'; @@ -43,10 +44,14 @@ export const SnapshotListTable = () => { - Name + + Name + - Snapshot url + + Snapshot url + @@ -64,10 +69,16 @@ export const SnapshotListTable = () => { {url} - {snapshot.external && External} + + {snapshot.external && ( + + External + + )} + - View + View diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index 610a5ecbb6e..76f15089164 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -896,6 +896,12 @@ }, "title": "Einstellungen" }, + "snapshot": { + "external-badge": "", + "name-column-header": "", + "url-column-header": "", + "view-button": "" + }, "tag-filter": { "loading": "Wird geladen ...", "no-tags": "Keine Tags gefunden", diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index a4ffe8df640..f896edd38f6 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -896,6 +896,12 @@ }, "title": "Preferences" }, + "snapshot": { + "external-badge": "External", + "name-column-header": "Name", + "url-column-header": "Snapshot url", + "view-button": "View" + }, "tag-filter": { "loading": "Loading...", "no-tags": "No tags found", diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index 1e27bb2efa1..2761cad76b6 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -901,6 +901,12 @@ }, "title": "Preferencias" }, + "snapshot": { + "external-badge": "", + "name-column-header": "", + "url-column-header": "", + "view-button": "" + }, "tag-filter": { "loading": "Cargando...", "no-tags": "No se ha encontrado ninguna etiqueta", diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index c20bebaf745..ac0842fd36c 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -901,6 +901,12 @@ }, "title": "Préférences" }, + "snapshot": { + "external-badge": "", + "name-column-header": "", + "url-column-header": "", + "view-button": "" + }, "tag-filter": { "loading": "Chargement en cours...", "no-tags": "Aucune étiquette trouvée", diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index ec889d5d3df..e2e0c48e27b 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -896,6 +896,12 @@ }, "title": "Přęƒęřęʼnčęş" }, + "snapshot": { + "external-badge": "Ēχŧęřʼnäľ", + "name-column-header": "Ńämę", + "url-column-header": "Ŝʼnäpşĥőŧ ūřľ", + "view-button": "Vįęŵ" + }, "tag-filter": { "loading": "Ŀőäđįʼnģ...", "no-tags": "Ńő ŧäģş ƒőūʼnđ", diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index d1e6954c488..a691fb16865 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -891,6 +891,12 @@ }, "title": "首选项" }, + "snapshot": { + "external-badge": "", + "name-column-header": "", + "url-column-header": "", + "view-button": "" + }, "tag-filter": { "loading": "加载中...", "no-tags": "未找到标签",