-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't translate email templates sent via a CLI command #38202
Comments
Hi @ioweb-gr. Thank you for your report.
Join Magento Community Engineering Slack and ask your questions in #github channel. |
It seems in order to make them translate I had to follow the solution from this commit for a similar issue
I think this is missing from the template rendering where it's processing the design parameters added by
|
Hi @engcom-November. Thank you for working on this issue.
|
Hello @ioweb-gr, Thank you for the report and collaboration! We were able to reproduce this issue on 2.4-develop. Please find the attached custom module used to reproduce this issue. Thank you. |
✅ Jira issue https://jira.corp.adobe.com/browse/AC-10597 is successfully created for this GitHub issue. |
✅ Confirmed by @engcom-November. Thank you for verifying the issue. |
Thanks for verifying. Also as a side note this is a bug that does not exist in 2.3.2 |
Preconditions and environment
Steps to reproduce
Here's a sample service class that sends an email using a template
I'm now trying in a CLI command to send an email template using this service class for storeId 5 which is using Greek locale.
I've added the proper translation files but the message keeps sending in english.
Header / Footer are loaded from english store
Here's my email template
Expected result
Message is sent translated
Actual result
Message is using default English locale
Additional information
No response
Release note
No response
Triage and priority
The text was updated successfully, but these errors were encountered: