Updating state after filtering
Cant find out if it's currently possible, where after filtering, I update the state and tooltip of values.
When I filter a different language, I want to update the fields with the translations, and add a tooltip with the originals
7 Replies
Any ideas?
Just add the tooltip to your columns with a Closure that has a condition on your selected locale
What about the value itself?
As if I have the filter as spanish, I want my title and description fields to show the spanish equilalent?
Why aren't you using the LanguageSwitch that Filament provides? It would handle it all for you
As we've been looking into a manual build just at work, so was just playing around with all of this
Is it this one: https://v2.filamentphp.com/plugins/language-switch
Filament
Language Switch by Bezhan Salleh - Plugins - Filament
Zero config Language Switch(Changer/Localizer) plugin for Filamentphp Admin
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.