I am writing a module to send alert email to customer when a product is available. I have different email template with name like "alertmail EN", "alertmail FR"...
I can't do
Because the mail is send by a cron. How can I get locale code by customer?