How to: Translate Merge Fields and Field Labels
Use Translation Workbench to translate picklist merge field output, field labels, and related list values.
Use this guide when you need to translate picklist merge fields, field labels, or related list picklist values.
When to use each method
Use the method that matches the value source.
Use
translate="true"for Salesforce-translated picklists and labels.Use
toLabel()for picklist values returned by direct SOQL related lists.
Translate picklist merge fields with Translation Workbench
Use this when the field is a Salesforce picklist and the translated value exists in Translation Workbench.
Example
{{!Opportunity.StageName translate="true"}}S-Docs will return the translated picklist label for the template language.
You also need
Translation Workbench enabled in Salesforce
The picklist value translated in Salesforce
The template Language field set to the correct Salesforce language code
Use this method for Salesforce-managed translations, not custom free-text values.
Translate field labels
Use label merge fields when you want the field name itself translated in the output.
Example
This returns the translated field label, not the field value.
Use this for headings, form labels, and side-by-side record summaries.
Label rules
Standard field labels usually already have Salesforce translations.
Custom field labels usually need manual translation in Translation Workbench.
The template Language field must match the Salesforce translation language.
Translate related list picklist values
If a direct SOQL related list returns a picklist field, wrap it with toLabel().
Example
This returns the translated picklist label for the current template language.
Choose the right pattern fast
Translating a picklist value:
translate="true"Translating a field label:
{{!Label.Object.Field translate="true"}}Translating a SOQL related list picklist:
toLabel(FieldName)
Common mistakes
translate="true" does nothing
Check these first:
The field is not a picklist
Translation Workbench does not have the translated value
The template Language field is blank or wrong
Labels stay in English
Check these first:
The custom field label was never translated in Salesforce
The template Language field does not match the language code
You used a field merge field instead of a label merge field
Related guides
Last updated
Was this helpful?

