cancel
Showing results for 
Search instead for 
Did you mean: 

Cron Translate Email Magento 2

SOLVED

Cron Translate Email Magento 2

Hello!

 

Magento 2 still sending cron emails in English.

 

I know in Magento 1.9 is a recognized bug, but I tried with the fixed known and it doesn't works.

 

I need to translate the product alert emails.

 

Any solution?

Tags (2)
1 REPLY

Re: Cron Translate Email Magento 2

Ok, I just solved it thanks to @nobodypb https://github.com/magento/magento2/issues/3805#issuecomment-225160290

Just add the \Magento\Framework\App\AreaList dependency. And add this:

 

$areaObject = $this->_areaList->getArea(\Magento\Framework\App\Area::AREA_FRONTEND);
$areaObject->load(\Magento\Framework\App\Area::PART_TRANSLATE);

 

It works fine with my module! Smiley Very Happy