function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Makam RuthvikMakam Ruthvik 

Email Template not showing translations when fired from workflow

we have to languages in our Org English and Dutch. While testing out the email in classic email templates the translations are fine for both dutch and english contacts but when tested the same email template by workflow I am always getting english language even though my contact's preferred language is dutch. Please help me out

<messaging:emailTemplate subject="{!$Label.Art_Subject}"  recipientType="Contact" relatedToType="Order" language="{!recipient.Language__c}">
<messaging:htmlEmailBody >

<!--<span style="display: none !important; visibility: hidden; opacity: 0; color: transparent; height: 0; width: 0;">{!$Label.Art_Preheader}</span>-->

<c:Art OId="{!relatedTo.Id}"/>

SwethaSwetha (Salesforce Developers) 
HI Ruthvik,
Can you try language="{!relatedTo.owner.languageLocaleKey}" and see if that fixes the issue?

If this information helps, please mark the answer as best. Thank you