Right after calling setTranslation
the Spatie\Translatable\Events\TranslationHasBeenSetEvent
-event will be fired.
This is how that event looks like:
namespace Spatie\Translatable\Events;
class TranslationHasBeenSetEvent
{
public function __construct(
public mixed $model,
public string $key,
public string $locale,
public mixed $oldValue,
public mixed $newValue,
) {
//
}
}