Closed sjardim closed 4 months ago
Hi, thanks for info. Maybe I can just take the first part of the locale when a country specific locale was provided. However I'm not sure if the "singular" locale code always has the same first part as the country specific locale code.
You're also welcome to PR it if you want.
I'm 99% sure it's fine. This is a simple solution that can work alongside a mention in the docs of the $locale property and that's it. :)
Thank you Lukas for this awesome package! I'm exploring it for an app we are working on to help a company plan its maintenance services.
Yes, I agree. It's released in v1.2.2. :)
I'm glad you enjoy the package. Sounds like a great use-case for the calendar, good luck with the app!
What happened?
My APP_LOCALE is 'pt_PT'. This will throw a console error on the @event-calendar script:
The solution in my case was to add the
$locale
string prop to my project *calendar widget** class:I can PR to add this to the documentation if it's fine. Thanks!
How to reproduce the bug
Set .env APP_LOCALE to country-specific values such as 'pt_PT', 'fr_CA' etc.
Package Version
1.2
PHP Version
8.3
Laravel Version
11.14.0
Which operating systems does with happen with?
macOS
Notes
No response