chore: Localization of several charts and elements (#22150)

Co-authored-by: ashumeiko <ashumeiko@ashumeiko.com>
This commit is contained in:
Artem Shumeiko
2023-01-11 19:42:54 +03:00
committed by GitHub
parent 44c9cf4de5
commit f3696ceef3
98 changed files with 748 additions and 663 deletions

View File

@@ -543,7 +543,7 @@ class AnnotationLayer extends React.PureComponent {
name="annotation-layer-title"
label={t('Title Column')}
description={t('Pick a title for you annotation.')}
options={[{ value: '', label: 'None' }].concat(columns)}
options={[{ value: '', label: t('None') }].concat(columns)}
value={titleColumn}
onChange={value => this.setState({ titleColumn: value })}
/>
@@ -566,9 +566,9 @@ class AnnotationLayer extends React.PureComponent {
<CheckboxControl
hovered
name="annotation-override-time_range"
label="Override time range"
description={`This controls whether the "time_range" field from the current
view should be passed down to the chart containing the annotation data.`}
label={t('Override time range')}
description={t(`This controls whether the "time_range" field from the current
view should be passed down to the chart containing the annotation data.`)}
value={'time_range' in overrides}
onChange={v => {
delete overrides.time_range;
@@ -584,9 +584,9 @@ class AnnotationLayer extends React.PureComponent {
<CheckboxControl
hovered
name="annotation-override-timegrain"
label="Override time grain"
description={`This controls whether the time grain field from the current
view should be passed down to the chart containing the annotation data.`}
label={t('Override time grain')}
description={t(`This controls whether the time grain field from the current
view should be passed down to the chart containing the annotation data.`)}
value={'time_grain_sqla' in overrides}
onChange={v => {
delete overrides.time_grain_sqla;
@@ -607,9 +607,9 @@ class AnnotationLayer extends React.PureComponent {
<TextControl
hovered
name="annotation-layer-timeshift"
label="Time Shift"
description={`Time delta in natural language
(example: 24 hours, 7 days, 56 weeks, 365 days)`}
label={t('Time Shift')}
description={t(`Time delta in natural language
(example: 24 hours, 7 days, 56 weeks, 365 days)`)}
placeholder=""
value={overrides.time_shift}
onChange={v =>
@@ -708,8 +708,8 @@ class AnnotationLayer extends React.PureComponent {
<CheckboxControl
hovered
name="annotation-layer-show-markers"
label="Show Markers"
description="Shows or hides markers for the time series"
label={t('Show Markers')}
description={t('Shows or hides markers for the time series')}
value={showMarkers}
onChange={v => this.setState({ showMarkers: v })}
/>
@@ -718,8 +718,8 @@ class AnnotationLayer extends React.PureComponent {
<CheckboxControl
hovered
name="annotation-layer-hide-line"
label="Hide Line"
description="Hides the Line for the time series"
label={t('Hide Line')}
description={t('Hides the Line for the time series')}
value={hideLine}
onChange={v => this.setState({ hideLine: v })}
/>