<aside>

Description

SimpleT Translate provides automatic translation services for Salesforce Flows and Apex code. It supports multiple translation engines, batch processing, automatic language detection, and real time results for multilingual content automation.

</aside>

SimpleT Translation Options

Setup

Use the following guides to get your Salesforce org ready for SimpleT Translate:

What You Can Do

Translation capabilities

Translation Parameters Explained

Required fields

Source Text

Target Languages

Translation Engine

Optional fields

Source Language

Apex-based translation

To use the st_translate method, create a List<ST_TranslationWrapper> with the required data.

For more information about the ST_DetectLanguageWrapper class, see the related language detection documentation.

// Create a new wrapper to hold translation job details.
simpleT.ST_TranslationWrapper wrapper = new simpleT.ST_TranslationWrapper();

// Create a list of target languages for translation.
List<String> targetLanguages = new List<String>();

// Add 'de' and 'hr' as target languages.
targetLanguages.add('de');
targetLanguages.add('hr');

// Assign target languages to the wrapper.
wrapper.targetLanguages = targetLanguages;

// Set the source language for translation.
wrapper.sourceLanguage = 'en_US';

// Choose the translation engine for this job.
wrapper.engine = 'ST Google Translate Default';

// Mark that the request originates from a Salesforce component.
wrapper.salesforceComponent = true;

// Add the text to be translated (HTML is supported).
wrapper.text = '<hello><div><br>Simple Translate helps to simplify translation</br></div></hello>';

// Create a list of wrappers (invocable methods require a list).
List<simpleT.ST_TranslationWrapper> translationWrappers =
	new List<simpleT.ST_TranslationWrapper>();

translationWrappers.add(wrapper);

// Call stTranslate to start the translation job.
// The method returns translations for all selected target languages.
simpleT.ST_TranslateInvocable.stTranslate(translationWrappers);

translateInvocableClass.png

Flow-based translation

  1. Navigate to Salesforce Flows to enable real-time data translation.
  2. Create or modify a Flow.
  3. For record-triggered Flows, select Optimize the Flow for Actions and Related Records.
  4. Set the Flow to run asynchronously.
  5. Use the SimpleT translation action in the Flow.
  6. In the Flow Action search bar, type Simple Translate RealTime Data Translation.
  7. Use the Simple Translate Real-Time Translation action to translate text.
  8. The action accepts a List<ST_TranslationWrapper> as its parameter.

translationFlow.png

ST_TranslationWrapper class

translationJobWrapper.png

Practical examples

Example 1: Case description translation

Scenario: Automatically translate case descriptions into the agent's language when a case is created.

Flow setup

Use the Flow to: