mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-07-08 05:14:30 -04:00
Add correct translations for emails
This commit is contained in:
parent
ba7ea8bbea
commit
185e47522d
@ -24,6 +24,7 @@ use Illuminate\Broadcasting\InteractsWithSockets;
|
|||||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||||
use Illuminate\Foundation\Events\Dispatchable;
|
use Illuminate\Foundation\Events\Dispatchable;
|
||||||
use Illuminate\Queue\SerializesModels;
|
use Illuminate\Queue\SerializesModels;
|
||||||
|
use Illuminate\Support\Facades\App;
|
||||||
|
|
||||||
class SendVerificationNotification implements ShouldQueue
|
class SendVerificationNotification implements ShouldQueue
|
||||||
{
|
{
|
||||||
@ -53,6 +54,10 @@ class SendVerificationNotification implements ShouldQueue
|
|||||||
|
|
||||||
$event->user->service()->invite($event->company);
|
$event->user->service()->invite($event->company);
|
||||||
|
|
||||||
|
App::forgetInstance('translator');
|
||||||
|
$t = app('translator');
|
||||||
|
$t->replace(Ninja::transformTranslations($event->company->settings));
|
||||||
|
|
||||||
$nmo = new NinjaMailerObject;
|
$nmo = new NinjaMailerObject;
|
||||||
$nmo->mailable = new UserAdded($event->company, $event->creating_user, $event->user);
|
$nmo->mailable = new UserAdded($event->company, $event->creating_user, $event->user);
|
||||||
$nmo->company = $event->company;
|
$nmo->company = $event->company;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user