UNPKG

@nodeject/ui-components

Version:

UI library for non-trivial components

46 lines (45 loc) 1.79 kB
import dayjsGenerateConfig from 'rc-picker/es/generate/dayjs'; import generatePicker from 'antd/es/date-picker/generatePicker'; import 'antd/es/date-picker/style/index'; export var DayjsDatePicker = generatePicker(dayjsGenerateConfig); export var datePickerFrLocale = function (placeholder) { return { lang: { locale: 'fr', placeholder: placeholder, today: "Aujourd'hui", now: 'Maintenant', backToToday: "Retour à aujourd'hui", ok: 'Ok', clear: 'Effacer', month: 'Mois', year: 'Année', timeSelect: 'Choisissez le temps', dateSelect: 'Choisissez la date', monthSelect: 'Choisissez le mois', yearSelect: "Choisissez l'année", decadeSelect: 'Choisissez la décénie', yearFormat: 'YYYY', dateFormat: 'MM/DD/YYYY', dayFormat: 'D', dateTimeFormat: 'MM/DD/YYYY HH:mm:ss', monthFormat: 'MMMM', monthBeforeYear: true, previousMonth: 'Mois précédent (PageUp)', nextMonth: 'Mois suivant (PageDown)', previousYear: 'Année précédente (Control + left)', nextYear: 'Année suivante (Control + right)', previousDecade: 'Décénie précédente', nextDecade: 'Décénie suivante', previousCentury: 'Siècle précédente', nextCentury: 'Siècle suivant' }, timePickerLocale: { placeholder: 'Selectionnez le temps' }, dateFormat: 'MM/DD/YYYY', dateTimeFormat: 'MM/DD/YYYY HH:mm:ss', weekFormat: 'YYYY-wo', monthFormat: 'MM-YYYY' }; };