I have an Apex class which sets the subject and body of an email using custom labels. The new requirement is to set this text per the language selected using a picklist field on Quote object. For example, if the language on Quote is French, the email text should be displayed in French irrespective of the user's location who generated the email.
newEnvelope.dsfs__DocuSign_Email_Subject__c = System.Label.AG_Docusign_Email_Subject + ' ' + Account.AccountName__c + ' ' + System.Label.AG_Quote + quoteName.Name; newEnvelope.dsfs__DocuSign_Email_Message__c = System.Label.AG_Docusign_Email_Message;
Is there any way to select the language of the label dynamically or any other way to implement this functionality?