Spatie Translatable package for Filament
Hi,
I recent have installed the filament plugin for spatie translations. Only I kind of dislike the current way of working and I was wondering a couple of things, I could not find the a plugin docs.
- Instead of a dropdown, can I have like a tab that changes between the configured languages
- Can all the other languages inherit the original (for me en) text into the text boxes? So you can exactly see what you need to translate.
2 Replies
for the first point you can create custom component like this one
https://github.com/lara-zeus/chaos/blob/1.x/src/Forms/Components/MultiLang.php
and dont set the locale switcher
also you can find more plugins:
https://filamentphp.com/plugins/solution-forest-translate-field
https://filamentphp.com/plugins/mvenghaus-translatable-inline
https://filamentphp.com/plugins/outerweb-translatable-fields
https://filamentphp.com/plugins/34ml-translatable-field
for the second one, I think you can do something with
formatStateUsing
Thanks for your extended response. Ill have a look at it all π