mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Internationalization: Translate TimeRangeList component (#58131)
This commit is contained in:
parent
9c1c10ab9a
commit
b7efd46e2d
@ -4,6 +4,7 @@ import React, { ReactNode } from 'react';
|
|||||||
import { TimeOption } from '@grafana/data';
|
import { TimeOption } from '@grafana/data';
|
||||||
|
|
||||||
import { stylesFactory } from '../../../themes';
|
import { stylesFactory } from '../../../themes';
|
||||||
|
import { t } from '../../../utils/i18n';
|
||||||
|
|
||||||
import { TimePickerTitle } from './TimePickerTitle';
|
import { TimePickerTitle } from './TimePickerTitle';
|
||||||
import { TimeRangeOption } from './TimeRangeOption';
|
import { TimeRangeOption } from './TimeRangeOption';
|
||||||
@ -65,14 +66,14 @@ const Options = ({ options, value, onChange, title }: Props) => {
|
|||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<ul aria-roledescription="Time range selection">
|
<ul aria-roledescription={t('time-picker.time-range.aria-role', 'Time range selection')}>
|
||||||
{options.map((option, index) => (
|
{options.map((option, index) => (
|
||||||
<TimeRangeOption
|
<TimeRangeOption
|
||||||
key={keyForOption(option, index)}
|
key={keyForOption(option, index)}
|
||||||
value={option}
|
value={option}
|
||||||
selected={isEqual(option, value)}
|
selected={isEqual(option, value)}
|
||||||
onSelect={onChange}
|
onSelect={onChange}
|
||||||
name={title ?? 'Time ranges'}
|
name={title ?? t('time-picker.time-range.default-title', 'Time ranges')}
|
||||||
/>
|
/>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": ""
|
"select-time": ""
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "",
|
||||||
|
"default-title": "",
|
||||||
"example-title": "",
|
"example-title": "",
|
||||||
"specify": ""
|
"specify": ""
|
||||||
}
|
}
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": "Select a time range"
|
"select-time": "Select a time range"
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "Time range selection",
|
||||||
|
"default-title": "Time ranges",
|
||||||
"example-title": "Example time ranges",
|
"example-title": "Example time ranges",
|
||||||
"specify": "Specify time range <1></1>"
|
"specify": "Specify time range <1></1>"
|
||||||
}
|
}
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": ""
|
"select-time": ""
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "",
|
||||||
|
"default-title": "",
|
||||||
"example-title": "",
|
"example-title": "",
|
||||||
"specify": ""
|
"specify": ""
|
||||||
}
|
}
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": ""
|
"select-time": ""
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "",
|
||||||
|
"default-title": "",
|
||||||
"example-title": "",
|
"example-title": "",
|
||||||
"specify": ""
|
"specify": ""
|
||||||
}
|
}
|
||||||
@ -433,7 +435,7 @@
|
|||||||
"email-label": "Adresse e-mail",
|
"email-label": "Adresse e-mail",
|
||||||
"name-error": "Un nom est obligatoire",
|
"name-error": "Un nom est obligatoire",
|
||||||
"name-label": "Nom",
|
"name-label": "Nom",
|
||||||
"username-label": "Nom d’utilisateur"
|
"username-label": "Nom d´utilisateur"
|
||||||
},
|
},
|
||||||
"title": "Modifier le profil"
|
"title": "Modifier le profil"
|
||||||
},
|
},
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę"
|
"select-time": "Ŝęľęčŧ ä ŧįmę řäʼnģę"
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "Ŧįmę řäʼnģę şęľęčŧįőʼn",
|
||||||
|
"default-title": "Ŧįmę řäʼnģęş",
|
||||||
"example-title": "Ēχämpľę ŧįmę řäʼnģęş",
|
"example-title": "Ēχämpľę ŧįmę řäʼnģęş",
|
||||||
"specify": "Ŝpęčįƒy ŧįmę řäʼnģę <1></1>"
|
"specify": "Ŝpęčįƒy ŧįmę řäʼnģę <1></1>"
|
||||||
}
|
}
|
||||||
|
@ -416,6 +416,8 @@
|
|||||||
"select-time": ""
|
"select-time": ""
|
||||||
},
|
},
|
||||||
"time-range": {
|
"time-range": {
|
||||||
|
"aria-role": "",
|
||||||
|
"default-title": "",
|
||||||
"example-title": "",
|
"example-title": "",
|
||||||
"specify": ""
|
"specify": ""
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user