czemu / nova-calendar-tool

A Laravel Nova tool to display a calendar with event management.
MIT License
31 stars 29 forks source link

Impossible to change first day of week #11

Closed NowakAdmin closed 3 years ago

NowakAdmin commented 3 years ago

Its impossible now to change 1st day of week and also some localization words are not readed properly. But works on: https://fullcalendar.io/demos // localizations

I checked and also fixed missing optionsby upgrading a code: in \czemu\nova-calendar-tool\dist\js\tool.js after locale i added firstDay as in docs: https://fullcalendar.io/docs/firstDay with default 0 (sunday)

... ,locale:Nova.config.fullcalendar_locale||"en",**firstDay:Nova.config.fullcalendar_firstDay||0**,dateClick:this.handle ...

also upgraded a \czemu\nova-calendar-tool\src\ToolServiceProvider.php Nova::provideToScript([ 'fullcalendar_locale' => config('nova-calendar-tool.fullcalendar_locale'), 'fullcalendar_firstDay' => config('nova-calendar-tool.fullcalendar_firstDay'), // new line ]);

Also i upgraded a config file by adding a: `return [ // Calendar language (more info: https://fullcalendar.io/docs/locale) 'fullcalendar_locale' => 'pl', 'fullcalendar_firstDay' => 1, // new line

Also localizations of navbar is not working properly -> they are not read for ex. "Previous", "Next", "day", "week", "month"

// sorry I'm not yet familliar with pull requests on github.

czemu commented 3 years ago

Please give more information to reproduce this issue: