From 756ac91ca96df11bace72b86bc9bba5fb7b8d1e0 Mon Sep 17 00:00:00 2001 From: JeremieZipfel <82410981+JeremieZipfel@users.noreply.github.com> Date: Thu, 17 Feb 2022 20:13:42 +0100 Subject: [PATCH] Resolve translation problem Hello, If it's not too late, this is a small fix to resolve the translation issue in the generated html. Thank you. --- app/code/Cadence/External/Framework/App/External.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Cadence/External/Framework/App/External.php b/app/code/Cadence/External/Framework/App/External.php index e5cfc17..4136606 100644 --- a/app/code/Cadence/External/Framework/App/External.php +++ b/app/code/Cadence/External/Framework/App/External.php @@ -133,8 +133,8 @@ private function getLogger() public function launch(array $initParams = []) { $this->_state->setAreaCode('frontend'); + $this->_objectManager->get('\Magento\Framework\View\DesignLoader')->load(\Magento\Framework\App\Area::PART_TRANSLATE); $this->_objectManager->configure($this->_configLoader->load('frontend')); - $this->_eventManager->dispatch('cadence_wp_external_app_launch', [ 'app' => $this, 'request' => $this->_request @@ -178,4 +178,4 @@ public function handleExternalException(Bootstrap $bootstrap, \Exception $except echo $error . "

\n\n"; return true; } -} \ No newline at end of file +}