Replies: 6 comments 1 reply
-
Firstly - thanks for sponsoring the package! Can you give me an example of your DateRangeFilter, along with a screenshot of the behaviour you're seeing, so that I can try and replicate the issue on my end? I do plan to expose all of the flatpickr methods for DateRangeFilter in a upcoming release, just not sure on timescales just yet, but can prioritise anything that isn't working for a sponsor. Do feel free to give me a nudge on Discord if I'm not prompt about answering! |
Beta Was this translation helpful? Give feedback.
-
Hello,
this is how I use DateRangeFilter:
```php
'DATUM' => DateRangeFilter::make('Datum vystavení', 'DATUM')
->config([
'dateFormat' => 'Y-m-d',
'placeholder' => 'Zadejte rozmezí',
])
->setFilterPillValues([0 => 'minDate', 1 => 'maxDate']),
```
in my app.php I have set locale to cs
```php
'locale' => 'cs',
```
I would expect the flatpickr to be translated into czech langauge, so
February=Únor and so on.

And the filter bubbles to be also localized to czech (it should read 01 Úno
2024 Až 29 Úno 2024

Carbon is working fine as this line of code reads "února 26 2024, 1:52:04
dopoledne"
```php
Carbon\Carbon::now()->isoFormat('MMMM Do YYYY, h:mm:ss a')
```
|
Beta Was this translation helpful? Give feedback.
-
Hello @lrljoe any update on this? |
Beta Was this translation helpful? Give feedback.
-
So I'm actively looking at this at the moment. The config option will be in the next version. |
Beta Was this translation helpful? Give feedback.
-
Merged into development, if you'd like to test |
Beta Was this translation helpful? Give feedback.
-
This is in the latest version |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
The DateRange component uses flatpickr and in vendor/rappasoft/laravel-livewire-tables/resources/js/partials/filter-date-range.min.js I see that locale is set to "en". So far I have tried to set the language as they say in docs and how they do it in laravel-splade but I can't seem to get it working.
Also, when date is selected, in filters, the months are shown also in english, even though my app locale is set to "cs". I have changed the format to "d/m/y" for now.
Beta Was this translation helpful? Give feedback.
All reactions