Set locale on photobooth mail

This commit is contained in:
Codex Agent
2026-01-13 16:24:29 +01:00
parent 5da553ae54
commit 59c7b18ccc

View File

@@ -90,9 +90,7 @@ class PhotoboothController extends Controller
$eventName = $this->resolveEventName($event, $locale);
$recipientName = $user->fullName ?? $user->name ?? $user->email;
Mail::to($user->email)
->locale($locale)
->queue(new PhotoboothUploaderDownload(
$mail = (new PhotoboothUploaderDownload(
recipientName: $recipientName,
eventName: $eventName,
links: [
@@ -100,7 +98,9 @@ class PhotoboothController extends Controller
'macos' => url('/downloads/PhotoboothUploader-macos-x64'),
'linux' => url('/downloads/PhotoboothUploader-linux-x64'),
],
));
))->locale($locale);
Mail::to($user->email)->queue($mail);
return response()->json([
'message' => __('Download links sent via email.'),