Ensure we translate
This commit is contained in:
parent
19d4895a64
commit
9e0bcffd6e
2 changed files with 7 additions and 0 deletions
|
|
@ -29,6 +29,7 @@ class SubdomainController extends BaseController
|
|||
'preview',
|
||||
'invoiceninja',
|
||||
'cname',
|
||||
'sandbox',
|
||||
];
|
||||
|
||||
public function __construct()
|
||||
|
|
|
|||
|
|
@ -38,6 +38,7 @@ use App\Repositories\BaseRepository;
|
|||
use App\Repositories\ClientRepository;
|
||||
use App\Repositories\InvoiceRepository;
|
||||
use App\Repositories\PaymentRepository;
|
||||
use App\Utils\Ninja;
|
||||
use App\Utils\Traits\CleanLineItems;
|
||||
use Illuminate\Bus\Queueable;
|
||||
use Illuminate\Contracts\Queue\ShouldQueue;
|
||||
|
|
@ -52,6 +53,7 @@ use League\Csv\Reader;
|
|||
use League\Csv\Statement;
|
||||
use Symfony\Component\HttpFoundation\ParameterBag;
|
||||
use Symfony\Component\HttpFoundation\Request;
|
||||
use Illuminate\Support\Facades\App;
|
||||
|
||||
class CSVImport implements ShouldQueue {
|
||||
|
||||
|
|
@ -132,6 +134,10 @@ class CSVImport implements ShouldQueue {
|
|||
'company' => $this->company,
|
||||
];
|
||||
|
||||
App::forgetInstance('translator');
|
||||
$t = app('translator');
|
||||
$t->replace(Ninja::transformTranslations($this->company->settings));
|
||||
|
||||
$nmo = new NinjaMailerObject;
|
||||
$nmo->mailable = new ImportCompleted($this->company, $data);
|
||||
$nmo->company = $this->company;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue