Spatie Translatable Plugin - Repeater Fields Supported

Does the official plugin https://filamentphp.com/plugins/filament-spatie-translatable now support translation of repeater fields (stored as json).
Iirc in v2 it didn't support repeater fields so hoping v3 does
Filament
Spatie Translatable by Filament - Filament
Filament support for Spatie's Laravel Translatable package.
8 Replies
Blackpig
BlackpigOP12mo ago
Yes, looks like it does, I haven't tried all the different form types but it's working ok with simple text fields, hurrah!
Haydra
Haydra8mo ago
can't find it, can you help me with it ?
Blackpig
BlackpigOP8mo ago
@Haydra help you with what?
Haydra
Haydra8mo ago
@Blackpig can't find anything about repeater field for spatie plugin, and if there another way i'm trying to use it with pivot attributes, but couldn't make it done
Blackpig
BlackpigOP8mo ago
ok, I'll see if I can find out where I used it
Haydra
Haydra8mo ago
Thanks a lot, i really appreciate it @Blackpig did you find anything ? it's a bit urgent
Blackpig
BlackpigOP8mo ago
Sorry, been busy with work. If I get time I'll spin up a quick project later. IIRC - I just added the repeater field to the translatable array on the model and added the relevant traits/concerns. The main difference from a normal text input is when switching locale, the text input would be on the page ready for the new language input. But with a repeater - if you have already added 3 in the 'EN' locale and then switch to 'FR' - you would need to add the 3 repeaters again - it doesn't auto-magically create 3 'empty' repeaters awaiting translated input. I also wasn't using the repeater for a relationship - it was data stored in a JSON field on the model.
Haydra
Haydra8mo ago
no problem with adding repeater item if the locale key doesn't exist, it's a good practice for the situation, i have been thinking in similar way but couldn't implement it. thanks i really appreciate it
Want results from more Discord servers?
Add your server