function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Samruddhi GokhaleSamruddhi Gokhale 

Translating emails using translation workbench

I want to send emails in user's language dynamically. Two approaches:
1. Use visualforce email template, create labels and use them in the template. Set language attribute in the template and provide translations for the labels using translation workbench.
2. Create multiple versions of each template, each in a separate language and choose the template dynamically.

Advantage of first approach is that no additional efforts are required if a new language is to be supported but creating so many custom labels is cumbersome. 2nd approach is good in that respect but a template needs to be added everytime a new language is supported. 
Is there any other approach? If not, which one of the above should be chosen?
Ajay K DubediAjay K Dubedi
There are a few prerequisites for getting Translation Workbench feature. First of all, this feature is only available for organizations which are multi-language organizations. This feature does not come by default in your organization. If you need to use it, you have to contact SalesForce support and request them to activate it in your organization.

Once they have activated it in your organization, you can enable it by navigating to

Setup > Translation Workbench. Next you can add languages that you would like to support.

The languages supported by SalesForce have 3 levels. They are -

1.Fully Supported – In this case, all features are translated. Languages supported in this level includes Chinese, French, German and more.
2.End User – In this case, all standard objects and pages are translated. It excludes administration setup and help. Languages supported in this level includes Arabic, Greek, Hebrew and more.
3.Platform Only – In this case, you can localize the custom labels, custom objects, and field labels. Languages supported in this level includes Hindi, Irish, Bosnian and more.
After the language has been selected you can provide translations for the customizations and update code to make use of this translation. Admin can set the default language settings for their organization and users can set their personal default language.