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