Best Practice when making new plugin
I'm building my first plugin!
In my website i need it translatable, but if i want to release it
should i add all the translation implementation in the plugin or leaving to the user the implementation?
and for translate i mean use Spatie\Translatable\HasTranslations; use Filament\Resources\Concerns\Translatable; etc
1 Reply
make sure that is works with you implementation
for example the Translatable plugin has some issues with the relations etc
then, yes, you will need to add the traits to the resources and the model like
https://github.com/lara-zeus/sky/blob/3.x/src/Filament/Resources/SkyResource.php