87 lines
3.5 KiB
PHP
87 lines
3.5 KiB
PHP
<?php
|
|
|
|
return [
|
|
// 定义所有需要多语言支持的实体
|
|
'entities' => [
|
|
'vehicle' => [
|
|
'translation_model' => \app\console\model\VehicleDataTranslationModel::class,
|
|
'foreign_key' => 'vehicle_id',
|
|
],
|
|
'energy' => [
|
|
'translation_model' => \app\console\model\EnergyTranslationModel::class,
|
|
'foreign_key' => 'energy_id',
|
|
],
|
|
'type' => [
|
|
'translation_model' => \app\console\model\TypesTranslationModel::class,
|
|
'foreign_key' => 'type_id',
|
|
],
|
|
'model' => [
|
|
'translation_model' => \app\console\model\ModelTranslationModel::class,
|
|
'foreign_key' => 'model_id',
|
|
],
|
|
'brand' => [
|
|
'translation_model' => \app\console\model\BrandTranslationModel::class,
|
|
'foreign_key' => 'brand_id',
|
|
],
|
|
'brandBanner' => [
|
|
'translation_model' => \app\console\model\BrandBannerTranslationModel::class,
|
|
'foreign_key' => 'banner_id',
|
|
],
|
|
'brandTrait' => [
|
|
'translation_model' => \app\console\model\BrandTraitTranslationModel::class,
|
|
'foreign_key' => 'trait_id',
|
|
],
|
|
'agreement' => [
|
|
'translation_model' => \app\console\model\AgreementTranslationModel::class,
|
|
'foreign_key' => 'agreement_id',
|
|
],
|
|
'location' => [
|
|
'translation_model' => \app\console\model\LocationTranslationModel::class,
|
|
'foreign_key' => 'location_id',
|
|
],
|
|
'seo' => [
|
|
'translation_model' => \app\console\model\SeoInfoTranslationModel::class,
|
|
'foreign_key' => 'seo_id',
|
|
],
|
|
'drafts' => [
|
|
'translation_model' => \app\applet\model\DraftsDataTranslationModel::class,
|
|
'foreign_key' => 'drafts_id',
|
|
],
|
|
'vehicleNew' => [
|
|
'translation_model' => \app\console\model\VehicleNewTranslationModel::class,
|
|
'foreign_key' => 'vehicle_id',
|
|
],
|
|
'vehicleNewAsked' => [
|
|
'translation_model' => \app\console\model\VehicleNewAskedTranslationModel::class,
|
|
'foreign_key' => 'asked_id',
|
|
],
|
|
'vehicleNewTrait' => [
|
|
'translation_model' => \app\console\model\VehicleNewTraitTranslationModel::class,
|
|
'foreign_key' => 'trait_id',
|
|
],
|
|
'vehicleNewAlbum' => [
|
|
'translation_model' => \app\console\model\VehicleNewAlbumTranslationModel::class,
|
|
'foreign_key' => 'album_id',
|
|
],
|
|
'vehicleNewContent' => [
|
|
'translation_model' => \app\console\model\VehicleNewContentTranslationModel::class,
|
|
'foreign_key' => 'content_id',
|
|
],
|
|
'vehicleNewAttributes' => [
|
|
'translation_model' => \app\console\model\VehicleNewAttributesTranslationModel::class,
|
|
'foreign_key' => 'attributes_id',
|
|
],
|
|
'vehicleNewAttributeValues' => [
|
|
'translation_model' => \app\console\model\VehicleNewAttributeValuesTranslationModel::class,
|
|
'foreign_key' => 'values_id',
|
|
],
|
|
'vehicleNewAttributeCategories' => [
|
|
'translation_model' => \app\console\model\VehicleNewAttributeCategoriesTranslationModel::class,
|
|
'foreign_key' => 'categories_id',
|
|
],
|
|
],
|
|
|
|
// 默认支持的目标语种列表
|
|
'locales' => ['zh','en','ru','ar'],
|
|
];
|