diff --git a/app/Listeners/SendVerificationNotification.php b/app/Listeners/SendVerificationNotification.php index 99e095b10d60..cec4f916b0cc 100644 --- a/app/Listeners/SendVerificationNotification.php +++ b/app/Listeners/SendVerificationNotification.php @@ -24,6 +24,7 @@ use Illuminate\Broadcasting\InteractsWithSockets; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Events\Dispatchable; use Illuminate\Queue\SerializesModels; +use Illuminate\Support\Facades\App; class SendVerificationNotification implements ShouldQueue { @@ -53,6 +54,10 @@ class SendVerificationNotification implements ShouldQueue $event->user->service()->invite($event->company); + App::forgetInstance('translator'); + $t = app('translator'); + $t->replace(Ninja::transformTranslations($event->company->settings)); + $nmo = new NinjaMailerObject; $nmo->mailable = new UserAdded($event->company, $event->creating_user, $event->user); $nmo->company = $event->company;