i18n: Mark up SnapshotListTable for translations (#75621)

* markup snapshot list table

* final revision changes
This commit is contained in:
Krishna Dhakal 2023-09-29 20:24:55 +05:45 committed by GitHub
parent b75c7b4c49
commit 5ba37068c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 51 additions and 4 deletions

View File

@ -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 = () => {
<thead>
<tr>
<th>
<strong>Name</strong>
<strong>
<Trans i18nKey="snapshot.name-column-header">Name</Trans>
</strong>
</th>
<th>
<strong>Snapshot url</strong>
<strong>
<Trans i18nKey="snapshot.url-column-header">Snapshot url</Trans>
</strong>
</th>
<th style={{ width: '70px' }}></th>
<th style={{ width: '30px' }}></th>
@ -64,10 +69,16 @@ export const SnapshotListTable = () => {
<td>
<a href={url}>{url}</a>
</td>
<td>{snapshot.external && <span className="query-keyword">External</span>}</td>
<td>
{snapshot.external && (
<span className="query-keyword">
<Trans i18nKey="snapshot.external-badge">External</Trans>
</span>
)}
</td>
<td className="text-center">
<LinkButton href={url} variant="secondary" size="sm" icon="eye">
View
<Trans i18nKey="snapshot.view-button">View</Trans>
</LinkButton>
</td>
<td className="text-right">

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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đ",

View File

@ -891,6 +891,12 @@
},
"title": "首选项"
},
"snapshot": {
"external-badge": "",
"name-column-header": "",
"url-column-header": "",
"view-button": ""
},
"tag-filter": {
"loading": "加载中...",
"no-tags": "未找到标签",