Closed Draykee closed 1 month ago
From v1.8 there is the setLanguageCode method. Does this cover your needs?
Actually no - for some of my usecases the injector: Injector;
is missing and required.
Maybe a second function setLanguageCodeAsync
that also loads data with the injector?
How about using the loadData method first, which gives you the injector and is async, and then in the setLanguageCode
method you'll have access to the data returned by the loadData
method.
Can this issue be closed, or is there still some functionality you can't achieve with existing APIs?
Hi, do you confirm that there is no languageCode associated to the order ? In this case, the languageCode of the context will always be different from the one used in the store-front.
This means we are obligated to store the preferred language in a custom field.
I don't find this solution intuitive, can I have your suggestions if there is an alternative to a custom field, before closing this issue ?
This issue is being closed because further data was needed but was not provided. If you want to continue the thread, comment below with the required information and the issue can be re-opened.
Is your feature request related to a problem? Please describe. Right now the language of an email is determined by the language of the
RequestContext
. In some cases emails will be triggered by events, cronjobs or services that may use a newly createdRequestContext
that doesn't apply the language of the customer.When configuring an
EmailEventListener
there should be an option that makes the language selectable.Describe the solution you'd like
Describe alternatives you've considered There is none, except duplicating all handlers and sending/filtering for different events.