- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2016
01:10 AM
06-10-2016
01:10 AM
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?
Solved! Go to Solution.
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2016
05:12 AM
06-10-2016
05:12 AM
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!
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-10-2016
05:12 AM
06-10-2016
05:12 AM
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!