Internationalization: Translate TimeZonePicker component (#58461)

This commit is contained in:
Laura Fernández 2022-11-08 17:25:35 +01:00 committed by GitHub
parent 75701695d8
commit 96d70c37bd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 27 additions and 2 deletions

View File

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

View File

@ -441,6 +441,10 @@
"default-title": "",
"example-title": "",
"specify": ""
},
"zone": {
"select-aria-label": "",
"select-search-input": ""
}
},
"user-orgs": {

View File

@ -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": {

View File

@ -441,6 +441,10 @@
"default-title": "",
"example-title": "",
"specify": ""
},
"zone": {
"select-aria-label": "",
"select-search-input": ""
}
},
"user-orgs": {

View File

@ -441,6 +441,10 @@
"default-title": "",
"example-title": "",
"specify": ""
},
"zone": {
"select-aria-label": "",
"select-search-input": ""
}
},
"user-orgs": {

View File

@ -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": {

View File

@ -441,6 +441,10 @@
"default-title": "",
"example-title": "",
"specify": ""
},
"zone": {
"select-aria-label": "",
"select-search-input": ""
}
},
"user-orgs": {