feat(i18n): add Spanish greeting/signoff when language='es'; update authReleaseFormCopies doc

This commit is contained in:
Paul Huliganga 2026-03-24 13:52:58 -04:00
parent a3ebafe506
commit a81d5788c7
2 changed files with 13 additions and 3 deletions

View File

@ -233,8 +233,18 @@ global with sharing class DocusignCompositeEnvelopeBuilder {
} }
// Compose body: greeting → template bodies separated by a visual divider → sign-off // Compose body: greeting → template bodies separated by a visual divider → sign-off
String DIVIDER = '\n\n' + '─'.repeat(40) + '\n\n'; String DIVIDER = '\n\n' + '─'.repeat(40) + '\n\n';
String GREETING = 'Hello,\n\nPlease complete the DocuSign signature request from Early Intervention Colorado.\n\n';
String SIGNOFF = '\n\nThank you,\nEarly Intervention Colorado'; // Support English (default) and Spanish greetings/signoffs based on the
// optional `language` input parameter (e.g. 'en' or 'es').
String GREETING;
String SIGNOFF;
if (String.isNotBlank(req.language) && req.language.toLowerCase().startsWith('es')) {
GREETING = 'Hola,\n\nPor favor, firme la solicitud de DocuSign de parte de Intervención Temprana Colorado.\n\n';
SIGNOFF = '\n\nGracias,\nIntervención Temprana Colorado';
} else {
GREETING = 'Hello,\n\nPlease complete the DocuSign signature request from Early Intervention Colorado.\n\n';
SIGNOFF = '\n\nThank you,\nEarly Intervention Colorado';
}
String envelopeBody; String envelopeBody;
if (bodyParts.isEmpty()) { if (bodyParts.isEmpty()) {
envelopeBody = GREETING + SIGNOFF; envelopeBody = GREETING + SIGNOFF;

View File

@ -35,7 +35,7 @@ global class DocusignEnvelopeRequest {
@InvocableVariable( @InvocableVariable(
label='Authorization to Release Form Copies' label='Authorization to Release Form Copies'
description='Number of times to include the Authorization to Release Information template (1-3). Only used when that template is selected.' description='Number of times to include the Authorization to Release Information template (1-5). Only used when that template is selected.'
required=false required=false
) )
global Integer authReleaseFormCopies; global Integer authReleaseFormCopies;