Browse Source

feat: Refine TimePicker locale typedefs (#22129)

pull/22132/head
Gibson C 5 years ago
committed by GitHub
parent
commit
bf7f47a7d7
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/time-picker/index.tsx
  2. 4
      components/time-picker/locale/ar_EG.tsx
  3. 4
      components/time-picker/locale/az_AZ.tsx
  4. 4
      components/time-picker/locale/bg_BG.tsx
  5. 4
      components/time-picker/locale/ca_ES.tsx
  6. 4
      components/time-picker/locale/cs_CZ.tsx
  7. 4
      components/time-picker/locale/da_DK.tsx
  8. 4
      components/time-picker/locale/de_DE.tsx
  9. 4
      components/time-picker/locale/el_GR.tsx
  10. 4
      components/time-picker/locale/en_GB.tsx
  11. 4
      components/time-picker/locale/en_US.tsx
  12. 4
      components/time-picker/locale/es_ES.tsx
  13. 4
      components/time-picker/locale/et_EE.tsx
  14. 4
      components/time-picker/locale/fa_IR.tsx
  15. 4
      components/time-picker/locale/fi_FI.tsx
  16. 4
      components/time-picker/locale/fr_BE.tsx
  17. 4
      components/time-picker/locale/fr_FR.tsx
  18. 4
      components/time-picker/locale/he_IL.tsx
  19. 4
      components/time-picker/locale/hi_IN.tsx
  20. 4
      components/time-picker/locale/hr_HR.tsx
  21. 4
      components/time-picker/locale/hu_HU.tsx
  22. 4
      components/time-picker/locale/id_ID.tsx
  23. 4
      components/time-picker/locale/is_IS.tsx
  24. 4
      components/time-picker/locale/it_IT.tsx
  25. 4
      components/time-picker/locale/ja_JP.tsx
  26. 4
      components/time-picker/locale/kn_IN.tsx
  27. 4
      components/time-picker/locale/ko_KR.tsx
  28. 4
      components/time-picker/locale/ku_IQ.tsx
  29. 4
      components/time-picker/locale/lv_LV.tsx
  30. 4
      components/time-picker/locale/mk_MK.tsx
  31. 4
      components/time-picker/locale/mn_MN.tsx
  32. 4
      components/time-picker/locale/ms_MY.tsx
  33. 4
      components/time-picker/locale/nb_NO.tsx
  34. 4
      components/time-picker/locale/nl_BE.tsx
  35. 4
      components/time-picker/locale/nl_NL.tsx
  36. 4
      components/time-picker/locale/pl_PL.tsx
  37. 4
      components/time-picker/locale/pt_BR.tsx
  38. 4
      components/time-picker/locale/pt_PT.tsx
  39. 4
      components/time-picker/locale/ro_RO.tsx
  40. 4
      components/time-picker/locale/ru_RU.tsx
  41. 4
      components/time-picker/locale/sk_SK.tsx
  42. 4
      components/time-picker/locale/sl_SI.tsx
  43. 4
      components/time-picker/locale/sr_RS.tsx
  44. 4
      components/time-picker/locale/sv_SE.tsx
  45. 4
      components/time-picker/locale/ta_IN.tsx
  46. 4
      components/time-picker/locale/th_TH.tsx
  47. 4
      components/time-picker/locale/tr_TR.tsx
  48. 4
      components/time-picker/locale/uk_UA.tsx
  49. 4
      components/time-picker/locale/vi_VN.tsx
  50. 4
      components/time-picker/locale/zh_CN.tsx
  51. 4
      components/time-picker/locale/zh_TW.tsx

5
components/time-picker/index.tsx

@ -7,6 +7,11 @@ import { Omit } from '../_util/type';
const { TimePicker: InternalTimePicker, RangePicker: InternalRangePicker } = DatePicker;
export interface TimePickerLocale {
placeholder?: string;
rangePlaceholder?: [string, string];
}
export interface TimeRangePickerProps extends RangePickerTimeProps<Moment> {}
const RangePicker = React.forwardRef<any, TimeRangePickerProps>((props, ref) => {

4
components/time-picker/locale/ar_EG.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'اختيار الوقت',
};

4
components/time-picker/locale/az_AZ.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Vaxtı seç',
};

4
components/time-picker/locale/bg_BG.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Избор на час',
};

4
components/time-picker/locale/ca_ES.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Seleccionar hora',
};

4
components/time-picker/locale/cs_CZ.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Vybrat čas',
};

4
components/time-picker/locale/da_DK.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Vælg tid',
};

4
components/time-picker/locale/de_DE.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Zeit auswählen',
};

4
components/time-picker/locale/el_GR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Επιλέξτε ώρα',
};

4
components/time-picker/locale/en_GB.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Select time',
};

4
components/time-picker/locale/en_US.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Select time',
rangePlaceholder: ['Start time', 'End time'],
};

4
components/time-picker/locale/es_ES.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Seleccionar hora',
};

4
components/time-picker/locale/et_EE.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Vali aeg',
};

4
components/time-picker/locale/fa_IR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'انتخاب زمان',
};

4
components/time-picker/locale/fi_FI.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Valitse aika',
};

4
components/time-picker/locale/fr_BE.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: "Sélectionner l'heure",
};

4
components/time-picker/locale/fr_FR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: "Sélectionner l'heure",
};

4
components/time-picker/locale/he_IL.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'בחר שעה',
};

4
components/time-picker/locale/hi_IN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'समय का चयन करें',
};

4
components/time-picker/locale/hr_HR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Odaberite vrijeme',
};

4
components/time-picker/locale/hu_HU.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Válasszon időt',
};

4
components/time-picker/locale/id_ID.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Pilih waktu',
};

4
components/time-picker/locale/is_IS.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Velja tíma',
};

4
components/time-picker/locale/it_IT.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: "Selezionare l'orario",
};

4
components/time-picker/locale/ja_JP.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: '時刻を選択',
};

4
components/time-picker/locale/kn_IN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'ಸಮಯ ಆಯ್ಕೆಮಾಡಿ',
};

4
components/time-picker/locale/ko_KR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: '날짜 선택',
};

4
components/time-picker/locale/ku_IQ.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Demê hilbijêre',
};

4
components/time-picker/locale/lv_LV.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Izvēlieties laiku',
};

4
components/time-picker/locale/mk_MK.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Избери време',
};

4
components/time-picker/locale/mn_MN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Цаг сонгох',
};

4
components/time-picker/locale/ms_MY.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Sila pilih masa',
};

4
components/time-picker/locale/nb_NO.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Velg tid',
};

4
components/time-picker/locale/nl_BE.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Selecteer tijd',
};

4
components/time-picker/locale/nl_NL.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Selecteer tijd',
};

4
components/time-picker/locale/pl_PL.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Wybierz godzinę',
};

4
components/time-picker/locale/pt_BR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Hora',
};

4
components/time-picker/locale/pt_PT.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Hora',
};

4
components/time-picker/locale/ro_RO.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Selectează ora',
};

4
components/time-picker/locale/ru_RU.tsx

@ -1,7 +1,9 @@
/**
* Created by Andrey Gayvoronsky on 13/04/16.
*/
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Выберите время',
};

4
components/time-picker/locale/sk_SK.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Vybrať čas',
};

4
components/time-picker/locale/sl_SI.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Izberite čas',
};

4
components/time-picker/locale/sr_RS.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Izaberite vreme',
};

4
components/time-picker/locale/sv_SE.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Välj tid',
};

4
components/time-picker/locale/ta_IN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'நேரத்தைத் தேர்ந்தெடுக்கவும்',
};

4
components/time-picker/locale/th_TH.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'เลือกเวลา',
};

4
components/time-picker/locale/tr_TR.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Zaman Seç',
};

4
components/time-picker/locale/uk_UA.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Оберіть час',
};

4
components/time-picker/locale/vi_VN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: 'Chọn thời gian',
};

4
components/time-picker/locale/zh_CN.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: '请选择时间',
rangePlaceholder: ['开始时间', '结束时间'],
};

4
components/time-picker/locale/zh_TW.tsx

@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';
const locale: TimePickerLocale = {
placeholder: '請選擇時間',
};

Loading…
Cancel
Save