SS
03/29/2022, 10:41 AMscottvonduhn
03/29/2022, 4:16 PMCOALESCE({entity.language.id}, 'en_US')
(substituting your preferred default locale as the second argument), then in the PDF template, we put this at the very top:
<#assign locale = record.custbody_customer_locale>
<#setting locale = locale>
If you are using translation collections in your template, then set the locales as follows: nstranslation.load({ 'locales': [ locale ], 'collections': [{ … }] })