Create a separate Output Document for each language. If needing a RTL document, use this code in the HTML code for the template:
This Output Document doesn't need to be assigned as a step in the process, but it can be. Then use REST to generate the Output Document file.
If needing an Output Document in multiple languages, while running cases inside the PM interface, there are two options. Either generate all the HTML content dynamically in a trigger based on the system language or create multiple output documents in different languages and use conditions to display only one of them based on the system language.
For example, the following trigger generates the HTML content dynamically in Spanish and English:
Set this trigger to fire before the Output Document step. Then, place @#fileContent
in the Output Document template.
The other option is to create separate Output Documents for each language and then use the following condition for the step of the Spanish Output Document:
Then use the following condition for the English Output Document step: