mirror of
https://github.com/grafana/grafana.git
synced 2025-02-09 23:16:16 -06:00
Internationalization: Translate TimeZonePicker component (#58461)
This commit is contained in:
parent
75701695d8
commit
96d70c37bd
@ -11,6 +11,7 @@ import {
|
||||
InternalTimeZones,
|
||||
} from '@grafana/data';
|
||||
|
||||
import { t } from '../../utils/i18n';
|
||||
import { Select } from '../Select/Select';
|
||||
|
||||
import { TimeZoneGroup } from './TimeZonePicker/TimeZoneGroup';
|
||||
@ -58,7 +59,7 @@ export const TimeZonePicker = (props: Props) => {
|
||||
<Select
|
||||
inputId={inputId}
|
||||
value={selected}
|
||||
placeholder="Type to search (country, city, abbreviation)"
|
||||
placeholder={t('time-picker.zone.select-search-input', 'Type to search (country, city, abbreviation)')}
|
||||
autoFocus={autoFocus}
|
||||
menuShouldPortal={false}
|
||||
openMenuOnFocus={true}
|
||||
@ -69,7 +70,7 @@ export const TimeZonePicker = (props: Props) => {
|
||||
onBlur={onBlur}
|
||||
components={{ Option: TimeZoneOption, Group: TimeZoneGroup }}
|
||||
disabled={disabled}
|
||||
aria-label={'Time zone picker'}
|
||||
aria-label={t('time-picker.zone.select-aria-label', 'Time zone picker')}
|
||||
/>
|
||||
);
|
||||
};
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "",
|
||||
"example-title": "",
|
||||
"specify": ""
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "",
|
||||
"select-search-input": ""
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "Time ranges",
|
||||
"example-title": "Example time ranges",
|
||||
"specify": "Specify time range <1></1>"
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "Time zone picker",
|
||||
"select-search-input": "Type to search (country, city, abbreviation)"
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "",
|
||||
"example-title": "",
|
||||
"specify": ""
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "",
|
||||
"select-search-input": ""
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "",
|
||||
"example-title": "",
|
||||
"specify": ""
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "",
|
||||
"select-search-input": ""
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "Ŧįmę řäʼnģęş",
|
||||
"example-title": "Ēχämpľę ŧįmę řäʼnģęş",
|
||||
"specify": "Ŝpęčįƒy ŧįmę řäʼnģę <1></1>"
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "Ŧįmę žőʼnę pįčĸęř",
|
||||
"select-search-input": "Ŧypę ŧő şęäřčĥ (čőūʼnŧřy, čįŧy, äþþřęvįäŧįőʼn)"
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
@ -441,6 +441,10 @@
|
||||
"default-title": "",
|
||||
"example-title": "",
|
||||
"specify": ""
|
||||
},
|
||||
"zone": {
|
||||
"select-aria-label": "",
|
||||
"select-search-input": ""
|
||||
}
|
||||
},
|
||||
"user-orgs": {
|
||||
|
Loading…
Reference in New Issue
Block a user