-
Notifications
You must be signed in to change notification settings - Fork 6
Description
Is your feature request related to a problem? Please describe.
As a user, I can choose to display the interface in French or English. Although, when AgentJ sends a report or a human authentication message, the email is translated using the default app locale (see DEFAULT_LOCALE in .env file).
Describe the solution you'd like
As AgentJ sends me an email and that it knows my locale, make sure to translate the email using my own locale (or the one of my domain) instead of the app default locale.
Note that the content of the emails will always depend on the domain template, so it's not possible to translate it yet, but at least we should be able to translate the subjects and the "authorize / restore" links with the correct locale.
This should be done in SendAuthMailRequestCommand and ReportSendMailCommand. The emails sent by CreateAlertMessageHandler are already translated, so you can see how it can be achieved.
Describe alternatives you've considered
N/A
Additional context
N/A