[ 'translations' => [ 'appadmin' => [ 'basePaths' => [ '@appadmin/languages', ], // base language code 'sourceLanguage' => 'en_US', /** * @var bool whether to force message translation when the source and target languages are the same. * Defaults to false, meaning translation is only performed when source and target languages are different. * see: @yii/i18n/MessageSource.php @property $forceTranslation */ 'forceTranslation' => true, ], ], ], ]; // param $params = []; /** * Yii框架的class rewrite重写,这个一般不用,您可以通过这个重写基本上任何的class,但是这种方式是替换,重写的class无法继承原来的class,因此是替换的方式重写 * Yii framework class rewrite: 文档:http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecmall-rewrite-func.html#7yii2classclassmapfecmall */ $yiiClassMap = [ // 下面是一个重写的格式例子 // 'fecshop\app\apphtml5\helper\test\My' => '@apphtml5/helper/My.php' ]; /** * Fecmall model 和 block 重写,可以在RewriteMap中配置 * 文档地址:http://www.fecmall.com/doc/fecshop-guide/develop/cn-2.0/guide-fecmall-rewrite-func.html#8rewritemapblock-model */ $fecRewriteMap = [ // 下面是一个重写的格式例子 // '\fecshop\app\appfront\modules\Cms\block\home\Index' => '\fectfurnilife\appfront\modules\Cms\block\home\Index', ]; return [ 'modules' => $modules, 'services' => $services, 'components' => $components, 'params' => $params, 'yiiClassMap' => $yiiClassMap, 'fecRewriteMap' => $fecRewriteMap, ];