We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cbe90 commit a07e1adCopy full SHA for a07e1ad
src/ui/Menus/DatePicker.ts
@@ -26,7 +26,9 @@ export function promptForDate(
26
enableTime: false, // Optional: Enable time picker
27
dateFormat: 'Y-m-d', // Adjust the date and time format as needed
28
locale: {
29
- firstDayOfWeek: 1, // Sets Monday as the first day of the week
+ // Try to determine the first day of the week based on the locale, or use Monday
30
+ // if unavailable
31
+ firstDayOfWeek: (new Intl.Locale(navigator.language) as any).weekInfo.firstDay ?? 1,
32
},
33
onClose: async (selectedDates, _dateStr, instance) => {
34
if (selectedDates.length > 0) {
0 commit comments