mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-01 20:17:35 -04:00 
			
		
		
		
	Ensure we translate
This commit is contained in:
		
							parent
							
								
									19d4895a64
								
							
						
					
					
						commit
						9e0bcffd6e
					
				| @ -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…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user