I created a Custom Label and added translation for Spanish. I am calling this Custom Label in the Email Subject Body. How can I implement the translated email depending upon User LanguageLocaleKey?
Messaging.SingleEmailMessage mail = new Messaging.SingleEmailMessage();
List<String> subj = new List<String>();
List<String> body = new List<String>();
subj.add(mark);
body.add(mark1);
String Subject = String.format(System.Label.NotiSubject, subj);
String messageBody = String.format(System.Label.NotiBody, body);
mail.setSubject(Subject);
mail.setHtmlBody(messageBody);
mailList.add(mail);
Messaging.sendEmail(mailList);
User.LanguageLocaleKey
?