83 $context = $chain->
getAsset()->getContext();
89 $themePath = $context->getThemePath();
90 $areaCode = $context->getAreaCode();
92 $this->viewDesign->setDesignTheme($themePath, $areaCode);
95 $area = $this->areaList->getArea($areaCode);
96 $area->load(\
Magento\Framework\
App\Area::PART_TRANSLATE);
98 $this->
translate->setLocale($context->getLocale())->loadData($areaCode,
true);
100 $chain->
setContent(json_encode($this->dataProvider->getData($themePath)));
113 return (strpos(
$path, $this->config->getDictionaryFileName()) !==
false);
__construct(Config $config, DataProviderInterface $dataProvider, AreaList $areaList, TranslateInterface $translate, DesignInterface $viewDesign=null)
jquery extjs ext tree mage adminhtml mage translate
setContentType($contentType)