Translate text

This feature translates text in real time to other languages, powered by the Google

Last published at: February 24th, 2025

clsGoogleTranslate Step

Description:

This step translates text in real-time to other languages, powered by Google.

 

Inputs

  • textToTranslate - Enter text to translate
  • selectFromLanguage - select the source language
  • selectToLanguage - select the language to translate
  • varGlobalToStoreValue - Variable / Global to store the translated text
 

 

Returns

  • True – step executed successfully
  • False – step failed to execute 
 

 

 

Usage:

 

 

Example:

Let’s build and execute the “GoogleTranslateDef” example.

  • Create a new process definition called “googleTranslateDef” and open it in Designer mode. 
  • Drag a “GoogleTranslate” step to the canvas.
  • Connect the dots between the “Start” step and “GoogleTranslate” steps, as shown above.
  • Define a variable or a global to store the translated text. 
  • Click the “GoogleTranslate” step to configure its “Required” properties. Provide a name for the step. Provide the text in a non-English language to translate. Select the language to translate from the drop-down list. Provide the variable or global reference to store the translated text during run-time. Click the Save button. Note: Click the "AI Predict" button for the Copilot to add new process steps that match your process description. 

 

  • Click the “GoogleTranslate” step to configure its “Optional” properties. Select the source language of the text from the drop-down list. Click the Save button. 

 

  • The “Logging” setting configuration is necessary for documentation and also measures the workflow progress and the percent complete. This is achieved by configuring the step state and percent fields individually, as shown below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a process instance, and then execute it. The Step should translate text in real-time to other languages, powered by Google. Select the process instance to render and verify the step properties.

 

 

Definition Sample:

You may download the sample definition(s) from the link here and later import them (drag-and-drop) to your FlowWright Process Definition (XML file) or Form Definition (HTML file) page. 

Note: Please verify and complete the process steps for any missing configurations, such as file path references and database connections, after import. Then, save the definition to confirm the changes. 

Click here to download the sample file.