Open DanielGrozdev opened 3 years ago
By reading the code, I think you're able to user the configs prop to pass the momentjs parameters in the format:
{
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
dayNamesShort: ['Su', 'Mo', 'Tu', 'We', 'Th', 'Fr', 'Sa'],
monthNames: [
'January',
'February',
'March',
'April',
'May',
'June',
'July',
'August',
'September',
'October',
'November',
'December',
],
selectedFormat: 'YYYY/MM/DD',
dateFormat: 'YYYY/MM/DD',
monthYearFormat: 'YYYY MM',
timeFormat: 'HH:mm',
hour: 'Hour',
minute: 'Minute',
timeSelect: 'Select',
timeClose: 'Close',
}
Indeed it work passing the props configs
configs={{
dayNames: [
"Dimanche",
"Lundi",
"Mardi",
"Mercredi",
"Jeudi",
"Vendredi",
"Samedi",
],
dayNamesShort: ["Di", "Lu", "Ma", "Me", "Je", "Ve", "Sa"],
monthNames: [
"Janvier",
"Fevrier",
"Mars",
"Avri",
"Mai",
"Juin",
"Juillet",
"Août",
"Septembre",
"Octobre",
"Novembre",
"Decembre",
],
}}
Gives
This can be close.
Hello. Is there any capability to show translated months for example may be pass a list of month names or a locale string is it possible? Thank you.