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
Naveen JainNaveen Jain 

Translation Workbench

Anyone using translations workbench. We are looking to use it to manage translations for some of the contact fields such as status, picklists, multi-select picklists and have some specific questions.

e.g. Are there any limitations in terms of the number of translations that can be stored in workbench

Is it possible to get the translated picklist available (not selected) values using REST API?

Is it posssible to get translations for multiple languages in one single session?

sfdcfoxsfdcfox

1) Translation Workbench will hold all the translations you need for any number of objects, fields, picklist values, and so on that you might need. I am not aware of any specific limitation to Translation Workbench other than to say that you can only have one translation per translatable entity per language.

 

2) Use toLabel() when performing any sort of query (REST, SOAP, or Apex) to get translated values (see documentation on toLabel()).

 

3) Technically: no, you can only get the organization's default values and the values for the session's current language. Conceptually, you could set the language for the user, retrieve the values you need, switch the user's language (via an Update call), and repeat, but this this fairly time consuming. Alternatively, you could build a metadata API tool to cache the translations on the client side (external server or desktop application), then ignore using toLabel() in favor of performing client-side translations... but that's also time consuming and prone to errors and delays in translations.