Skip to content

[Improvement]: allow array in locale  #141

Description

@TravisWilder

What happened?

Sorry Request Feature or Ask Question is not working

In relation to #52 it would be nice to change the locale and get locale function to accept and response arrays
As the flatpickr locale would accept things like:

"locale": {
"firstDayOfWeek": 1 // start week on Monday
}

this would allow to set additional options.

How to reproduce the bug

This would allow to handover an array like

[ "firstDayOfWeek"=> 1 ]

to customize the calendar

Package Version

5.1.0

PHP Version

8.4.0

Laravel Version

13.x

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