diff --git a/app/Http/Controllers/Api/Tenant/PhotoboothController.php b/app/Http/Controllers/Api/Tenant/PhotoboothController.php index 68b2fdc..9676ba0 100644 --- a/app/Http/Controllers/Api/Tenant/PhotoboothController.php +++ b/app/Http/Controllers/Api/Tenant/PhotoboothController.php @@ -9,6 +9,7 @@ use App\Mail\PhotoboothUploaderDownload; use App\Models\Event; use App\Models\PhotoboothSetting; use App\Services\Photobooth\PhotoboothProvisioner; +use App\Support\LocaleConfig; use Illuminate\Http\JsonResponse; use Illuminate\Http\Request; use Illuminate\Support\Facades\Mail; @@ -85,7 +86,7 @@ class PhotoboothController extends Controller ]); } - $locale = $user->preferred_locale ?: app()->getLocale(); + $locale = LocaleConfig::canonicalize($user->preferred_locale ?: app()->getLocale()); $eventName = $this->resolveEventName($event, $locale); $recipientName = $user->fullName ?? $user->name ?? $user->email;