Pagination number looks like a float
Hi guys, I have a weird one. I am now on Filament v4. I can't say if it was like this even on Filament v3, to be honest, but my pagination looks like with float values. π
As you can see in the image, for example, the last page is supposed to be "3630" or "3,630" (if we indicate thousand with a comma), but for sure not "3,63". I feel like it is an odd one because I don't think there is a real way to specify pagination to have "int" values. π€
Thanks in advance for any help. Cheers.
Loris

Solution:Jump to solution
I have found the problem.
In Filament v3 I added "Schema::configureUsing(fn(Infolist $infolist) => $infolist->defaultNumberLocale('it'))" in boot but it wasn't working after Filament v4 update.
In Filament v4 then I have changed that to "Number::useLocale('it_IT')" and that is effecting pagination numbers as well....
4 Replies
It might be an assets filament problem maybe π€
It looks like 3,63 is actually 3,630 but the 0 has been cut by the display. Cna you check that the text exists?
Solution
I have found the problem.
In Filament v3 I added "Schema::configureUsing(fn(Infolist $infolist) => $infolist->defaultNumberLocale('it'))" in boot but it wasn't working after Filament v4 update.
In Filament v4 then I have changed that to "Number::useLocale('it_IT')" and that is effecting pagination numbers as well.
I used that to globally change locale numbers and set that to "italy" but, to be honest, I don't remember if I have done that to actually "fix" something or simply to be sure the locale was applied to the app.
I have temporarily commented out that and it is now fine. We'll see if I needed it in a second moment. Cheers