翻译
This commit is contained in:
@@ -9,6 +9,7 @@ use app\model\LocationRu;
|
||||
use app\model\VehicleAr;
|
||||
use app\model\VehicleEn;
|
||||
use app\model\VehicleRu;
|
||||
use app\queue\jobs\TranslationJob;
|
||||
use app\service\OssService;
|
||||
use plugin\admin\app\common\Util;
|
||||
use plugin\admin\app\model\Location;
|
||||
@@ -282,7 +283,10 @@ class VehicleController extends Crud
|
||||
// 创建翻译服务实例
|
||||
$translatorService = new \app\service\TranslatorService();
|
||||
|
||||
$translatorService->queue($data,$languages[$lang],'vehicle',$data['id']?:null);
|
||||
// $translatorService->queue($data,$languages[$lang],'vehicle',$data['id']?:null);
|
||||
$data = ['entityType' => 'vehicle', 'sourceFields' => $data, 'sourceLang' => $languages[$lang], 'locale' => 'hello', 'id' => $data['id']?:null];
|
||||
$job = new TranslationJob($data);
|
||||
$job->handle();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user