|
|
|
@ -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')} |
|
|
|
|
/> |
|
|
|
|
); |
|
|
|
|
}; |
|
|
|
|