spatie / nova-translatable

Making Nova fields translatable
https://murze.be/making-nova-fields-translatable
MIT License
223 stars 28 forks source link

Problem in combination with a Slug field #95

Closed milenishte closed 1 year ago

milenishte commented 1 year ago

When a field is translatable, it can't trigger the automatic slug generation. I tried giving the Slug field ->preview('title'), ->preview('title.en') and also passing the field as an an object, that is previously defined like $title = Text::make('Title') ->translatable(); ... ->preview($title);