47 lines
1.7 KiB
PHP
47 lines
1.7 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',
|
|
]
|
|
],
|
|
|
|
// 默认支持的目标语种列表
|
|
'locales' => ['zh','en','ru','ar'],
|
|
];
|