We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e649b4c commit 9212f28Copy full SHA for 9212f28
app/code/Magento/Translation/Model/Json/PreProcessor.php
@@ -77,11 +77,12 @@ public function process(Chain $chain)
77
if ($context instanceof FallbackContext) {
78
$themePath = $context->getThemePath();
79
$areaCode = $context->getAreaCode();
80
- $this->translate->setLocale($context->getLocale());
81
}
82
83
$area = $this->areaList->getArea($areaCode);
84
$area->load(\Magento\Framework\App\Area::PART_TRANSLATE);
+
85
+ $this->translate->setLocale($context->getLocale())->loadData($areaCode, true);
86
87
$chain->setContent(json_encode($this->dataProvider->getData($themePath)));
88
$chain->setContentType('json');
0 commit comments