savannabits / filament-flatpickr

Extend your Filament Date-Picking with Flatpickr
MIT License
43 stars 29 forks source link

[Bug]: Forced setting of the calendar week to start from Monday [not a bug, just info] #52

Open catative opened 4 months ago

catative commented 4 months ago

What happened?

If you want to force the start of the calendar week from Monday, you need to add:

->customConfig([
      'locale' => [
          'ru',
          'firstDayOfWeek' => 1
      ]
  ])

Example:

Flatpickr::make('desired_arrival_date')
  ->label(__('fields.order.desired_arrival_date'))
  ->customConfig([
      'locale' => [
          'ru',
          'firstDayOfWeek' => 1
      ]
  ])
  ->weekNumbers(true),

How to reproduce the bug

It's not a bug, it's just info for everyone

Package Version

3.0.1

PHP Version

8.1.27

Laravel Version

10.43.0

Which operating systems does with happen with?

Linux

Notes

No response