Sorting is bugged when using Spatie Translatable plugin, search works only with lowercase
Hello, I'm using Filament 3 with Spatie Translatable plugin by Filament and I've ran into bugs when trying to sort or search translatable columns.
At the moment there's 2 languages - Lithuanian and English. It seems that sorting translated columns ignores selected language and always sorts by English values (panel itself only uses English language).
Also, not sure if it's Translatable plugin related, but the search only works if input is lowercase.
6 Replies
up? :/
I am using the same plugin here:
it seems working fine here
https://demo.larazeus.com/admin/forms?tableSortColumn=name&tableSortDirection=asc
and the code:
https://github.com/lara-zeus/bolt/blob/03c6efa82b5d15454161d9162adc055c7c9b4ed6/src/Filament/Resources/FormResource.php#L155C17-L155C43
can you check the queries with something like the debug bar?
We have a simular issue, with the fields
when we change from english to another language the name in the fields doesnt change it stays in english. even tho in the form, frontend or database, the other language has a diferente text
(this issue also happens in your demo website)
which pages were you testing on my demo site?
test it here and its working unless i am missing something?
https://demo.larazeus.com/admin/forms
is it a relations?
it happens on the form field
in title & slug it translates just fine.
on the form fields part it doesnt
![No description](https://cdn.answeroverflow.com/1280072641218347039/image.png)
![No description](https://cdn.answeroverflow.com/1280072641516015688/image.png)
![No description](https://cdn.answeroverflow.com/1280072641742377013/image.png)
![No description](https://cdn.answeroverflow.com/1280072642036236349/image.png)
the section and fields are relations and wont work and we cant find solution
https://github.com/lara-zeus/translatable/issues/8