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