Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Declare TimePickerLocale typedef #22129

Merged
merged 1 commit into from
Mar 11, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions components/time-picker/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ar_EG.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'اختيار الوقت',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/az_AZ.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Vaxtı seç',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/bg_BG.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Избор на час',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ca_ES.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Seleccionar hora',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/cs_CZ.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Vybrat čas',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/da_DK.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Vælg tid',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/de_DE.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Zeit auswählen',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/el_GR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Επιλέξτε ώρα',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/en_GB.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Select time',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/en_US.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Select time',
rangePlaceholder: ['Start time', 'End time'],
};
Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/es_ES.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Seleccionar hora',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/et_EE.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Vali aeg',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/fa_IR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'انتخاب زمان',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/fi_FI.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Valitse aika',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/fr_BE.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: "Sélectionner l'heure",
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/fr_FR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: "Sélectionner l'heure",
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/he_IL.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'בחר שעה',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/hi_IN.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'समय का चयन करें',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/hr_HR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Odaberite vrijeme',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/hu_HU.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Válasszon időt',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/id_ID.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Pilih waktu',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/is_IS.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Velja tíma',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/it_IT.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: "Selezionare l'orario",
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ja_JP.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: '時刻を選択',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/kn_IN.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'ಸಮಯ ಆಯ್ಕೆಮಾಡಿ',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ko_KR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: '날짜 선택',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ku_IQ.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Demê hilbijêre',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/lv_LV.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Izvēlieties laiku',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/mk_MK.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Избери време',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/mn_MN.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Цаг сонгох',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ms_MY.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Sila pilih masa',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/nb_NO.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Velg tid',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/nl_BE.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Selecteer tijd',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/nl_NL.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Selecteer tijd',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/pl_PL.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Wybierz godzinę',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/pt_BR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Hora',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/pt_PT.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Hora',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ro_RO.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Selectează ora',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ru_RU.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
/**
* Created by Andrey Gayvoronsky on 13/04/16.
*/
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Выберите время',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/sk_SK.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Vybrať čas',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/sl_SI.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Izberite čas',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/sr_RS.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Izaberite vreme',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/sv_SE.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Välj tid',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/ta_IN.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'நேரத்தைத் தேர்ந்தெடுக்கவும்',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/th_TH.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'เลือกเวลา',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/tr_TR.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Zaman Seç',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/uk_UA.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Оберіть час',
};

Expand Down
4 changes: 3 additions & 1 deletion components/time-picker/locale/vi_VN.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
const locale = {
import { TimePickerLocale } from '../index';

const locale: TimePickerLocale = {
placeholder: 'Chọn thời gian',
};

Expand Down
Loading