Skip to content

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

@catative

Description

@catative

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions