mirror of
https://github.com/grafana/grafana.git
synced 2024-11-24 09:50:29 -06:00
i18n: Mark up SnapshotListTable for translations (#75621)
* markup snapshot list table * final revision changes
This commit is contained in:
parent
b75c7b4c49
commit
5ba37068c2
@ -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">
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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",
|
||||
|
@ -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đ",
|
||||
|
@ -891,6 +891,12 @@
|
||||
},
|
||||
"title": "首选项"
|
||||
},
|
||||
"snapshot": {
|
||||
"external-badge": "",
|
||||
"name-column-header": "",
|
||||
"url-column-header": "",
|
||||
"view-button": ""
|
||||
},
|
||||
"tag-filter": {
|
||||
"loading": "加载中...",
|
||||
"no-tags": "未找到标签",
|
||||
|
Loading…
Reference in New Issue
Block a user