i18n: Markup Explorer Graph for translation (#76099)

This commit is contained in:
Krishna Dhakal 2023-10-12 15:10:48 +05:45 committed by GitHub
parent 5e918f031c
commit 334fc6a68a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 58 additions and 4 deletions

View File

@ -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 (
<PanelChrome
title="Graph"
title={t('graph.container.title', 'Graph')}
titleItems={[
!showAllSeries && MAX_NUMBER_OF_TIME_SERIES < data.length && (
<div key="disclaimer" className={styles.timeSeriesDisclaimer}>
<span className={styles.warningMessage}>
<Icon name="exclamation-triangle" aria-hidden="true" />
Showing only {MAX_NUMBER_OF_TIME_SERIES} series
<Trans i18nKey={'graph.container.show-only-series'}>
Showing only {{ MAX_NUMBER_OF_TIME_SERIES }} series
</Trans>
</span>
<Tooltip
content={`Rendering too many series in a single panel may impact performance and make data harder to read. Consider refining your queries.`}
content={t(
'graph.container.content',
'Rendering too many series in a single panel may impact performance and make data harder to read. Consider refining your queries.'
)}
>
<Button variant="secondary" size="sm" onClick={toggleShowAllSeries}>
Show all {data.length}
<Trans i18nKey={'graph.container.show-all-series'}>Show all {{ length: data.length }}</Trans>
</Button>
</Tooltip>
</div>

View File

@ -374,6 +374,14 @@
"placeholder": ""
}
},
"graph": {
"container": {
"content": "",
"show-all-series": "",
"show-only-series": "",
"title": ""
}
},
"help-modal": {
"shortcuts-category": {
"dashboard": "",

View File

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

View File

@ -379,6 +379,14 @@
"placeholder": ""
}
},
"graph": {
"container": {
"content": "",
"show-all-series": "",
"show-only-series": "",
"title": ""
}
},
"help-modal": {
"shortcuts-category": {
"dashboard": "",

View File

@ -379,6 +379,14 @@
"placeholder": ""
}
},
"graph": {
"container": {
"content": "",
"show-all-series": "",
"show-only-series": "",
"title": ""
}
},
"help-modal": {
"shortcuts-category": {
"dashboard": "",

View File

@ -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": "Đäşĥþőäřđ",

View File

@ -369,6 +369,14 @@
"placeholder": ""
}
},
"graph": {
"container": {
"content": "",
"show-all-series": "",
"show-only-series": "",
"title": ""
}
},
"help-modal": {
"shortcuts-category": {
"dashboard": "",