fixes for localizing company deleted email
This commit is contained in:
parent
3a6258fd42
commit
649defb2bd
1 changed files with 4 additions and 1 deletions
|
|
@ -50,7 +50,10 @@ class CompanyDeleted extends Mailable
|
|||
public function build()
|
||||
{
|
||||
App::forgetInstance('translator');
|
||||
App::setLocale($this->account->default_company->getLocale());
|
||||
|
||||
if($this->company)
|
||||
App::setLocale($this->company->getLocale());
|
||||
|
||||
$t = app('translator');
|
||||
$t->replace(Ninja::transformTranslations($this->settings));
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue