For the complete documentation index, see llms.txt. This page is also available as Markdown.

How To: Work with Right-to-Left Languages

Format templates for right-to-left languages like Hebrew and Arabic.

Use RTL options when document text must render correctly for right-to-left languages.

Problem

You need to generate documents in Hebrew, Arabic, or other right-to-left languages.

Solution 1: RTL for Merge Fields

Reverse a single field:

{{!Account.Greeting__c RTL="true"}}

Input: שלום Output: םולש

Solution 2: RTL for Entire Sections

Reverse a section with static text:

<rtl>reverse</rtl>
<p>Welcome to our company, {{!Account.Name}}!</p>
<p>Your account number is: {{!Account.AccountNumber}}</p>

Both static text and merge field data reverse.

Solution 3: Multi-Line RTL

Use separate tags for each line:

RTL tags do not work well when text wraps across multiple lines.

Complete RTL Document Example

Tips

  • RTL="true" affects merge field data only.

  • <rtl> affects static text and merge fields.

  • Do not combine both on the same field.

  • Use separate <rtl> tags for each line.

  • Test with real RTL content before rollout.

Last updated

Was this helpful?