diff --git a/public/app/features/inspector/QueryInspector.tsx b/public/app/features/inspector/QueryInspector.tsx index 024b487d90e..81df3f209f6 100644 --- a/public/app/features/inspector/QueryInspector.tsx +++ b/public/app/features/inspector/QueryInspector.tsx @@ -7,6 +7,7 @@ import { selectors } from '@grafana/e2e-selectors'; import { Stack } from '@grafana/experimental'; import { config } from '@grafana/runtime'; import { Button, ClipboardButton, JSONFormatter, LoadingPlaceholder } from '@grafana/ui'; +import { Trans } from 'app/core/internationalization'; import { backendSrv } from 'app/core/services/backend_srv'; import { getPanelInspectorStyles } from './styles'; @@ -221,8 +222,10 @@ export class QueryInspector extends PureComponent {

Query inspector

- Query inspector allows you to view raw request and response. To collect this data Grafana needs to issue a - new query. Click refresh button below to trigger a new query. + + Query inspector allows you to view raw request and response. To collect this data Grafana needs to issue a + new query. Click refresh button below to trigger a new query. +

{this.renderExecutedQueries(executedQueries)} @@ -232,17 +235,17 @@ export class QueryInspector extends PureComponent { onClick={onRefreshQuery} aria-label={selectors.components.PanelInspector.Query.refreshButton} > - Refresh + Refresh {haveData && allNodesExpanded && ( )} {haveData && !allNodesExpanded && ( )} @@ -253,7 +256,7 @@ export class QueryInspector extends PureComponent { icon="copy" variant="secondary" > - Copy to clipboard + Copy to clipboard )}
@@ -264,7 +267,9 @@ export class QueryInspector extends PureComponent { )} {!isLoading && !haveData && ( -

No request and response collected yet. Hit refresh button

+

+ No request and response collected yet. Hit refresh button +

)}
diff --git a/public/locales/de-DE/grafana.json b/public/locales/de-DE/grafana.json index ec68dffd9ad..fe5d7e7981d 100644 --- a/public/locales/de-DE/grafana.json +++ b/public/locales/de-DE/grafana.json @@ -422,6 +422,16 @@ }, "title": "" }, + "inspector": { + "query": { + "collapse-all": "", + "copy-to-clipboard": "", + "description": "", + "expand-all": "", + "no-data": "", + "refresh": "" + } + }, "library-panel": { "add-modal": { "cancel": "Abbrechen", diff --git a/public/locales/en-US/grafana.json b/public/locales/en-US/grafana.json index 6422a2a423f..29c575e4c4b 100644 --- a/public/locales/en-US/grafana.json +++ b/public/locales/en-US/grafana.json @@ -422,6 +422,16 @@ }, "title": "Shortcuts" }, + "inspector": { + "query": { + "collapse-all": "Collapse all", + "copy-to-clipboard": "Copy to clipboard", + "description": "Query inspector allows you to view raw request and response. To collect this data Grafana needs to issue a new query. Click refresh button below to trigger a new query.", + "expand-all": "Expand all", + "no-data": "No request and response collected yet. Hit refresh button", + "refresh": "Refresh" + } + }, "library-panel": { "add-modal": { "cancel": "Cancel", diff --git a/public/locales/es-ES/grafana.json b/public/locales/es-ES/grafana.json index b8a17d435b2..ca9fd8b7530 100644 --- a/public/locales/es-ES/grafana.json +++ b/public/locales/es-ES/grafana.json @@ -427,6 +427,16 @@ }, "title": "" }, + "inspector": { + "query": { + "collapse-all": "", + "copy-to-clipboard": "", + "description": "", + "expand-all": "", + "no-data": "", + "refresh": "" + } + }, "library-panel": { "add-modal": { "cancel": "Cancelar", diff --git a/public/locales/fr-FR/grafana.json b/public/locales/fr-FR/grafana.json index d61babbf93d..e887ae1378b 100644 --- a/public/locales/fr-FR/grafana.json +++ b/public/locales/fr-FR/grafana.json @@ -427,6 +427,16 @@ }, "title": "" }, + "inspector": { + "query": { + "collapse-all": "", + "copy-to-clipboard": "", + "description": "", + "expand-all": "", + "no-data": "", + "refresh": "" + } + }, "library-panel": { "add-modal": { "cancel": "Annuler", diff --git a/public/locales/pseudo-LOCALE/grafana.json b/public/locales/pseudo-LOCALE/grafana.json index 0ee6280028e..c1860822a00 100644 --- a/public/locales/pseudo-LOCALE/grafana.json +++ b/public/locales/pseudo-LOCALE/grafana.json @@ -422,6 +422,16 @@ }, "title": "Ŝĥőřŧčūŧş" }, + "inspector": { + "query": { + "collapse-all": "Cőľľäpşę äľľ", + "copy-to-clipboard": "Cőpy ŧő čľįpþőäřđ", + "description": "Qūęřy įʼnşpęčŧőř äľľőŵş yőū ŧő vįęŵ řäŵ řęqūęşŧ äʼnđ řęşpőʼnşę. Ŧő čőľľęčŧ ŧĥįş đäŧä Ğřäƒäʼnä ʼnęęđş ŧő įşşūę ä ʼnęŵ qūęřy. Cľįčĸ řęƒřęşĥ þūŧŧőʼn þęľőŵ ŧő ŧřįģģęř ä ʼnęŵ qūęřy.", + "expand-all": "Ēχpäʼnđ äľľ", + "no-data": "Ńő řęqūęşŧ äʼnđ řęşpőʼnşę čőľľęčŧęđ yęŧ. Ħįŧ řęƒřęşĥ þūŧŧőʼn", + "refresh": "Ŗęƒřęşĥ" + } + }, "library-panel": { "add-modal": { "cancel": "Cäʼnčęľ", diff --git a/public/locales/zh-Hans/grafana.json b/public/locales/zh-Hans/grafana.json index d8495004414..8f7810c189e 100644 --- a/public/locales/zh-Hans/grafana.json +++ b/public/locales/zh-Hans/grafana.json @@ -417,6 +417,16 @@ }, "title": "" }, + "inspector": { + "query": { + "collapse-all": "", + "copy-to-clipboard": "", + "description": "", + "expand-all": "", + "no-data": "", + "refresh": "" + } + }, "library-panel": { "add-modal": { "cancel": "取消",