clsGoogleTranslate Step

Use this step to translate text using Google Translate AI service

Last published at: March 21st, 2025

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 definition called “googleTranslateDef
  • Select the definition and click the “design” button
  • Drag a “googleTranslate” step from the toolbox
  • Connect the dots between the Start and “googleTranslate” step 
  • Click the “googleTranslate” step to configure its “Required” properties. Provide a step name. Provide the text in non-English to translate. Select the language to translate from the drop-down list. Provide the variable/global reference to store the translated text during run-time. Click the Save button.

 

  • 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 in the images below. Configure the “Logging” using the following properties.

 

  • Save the process definition, create a process instance, and execute. 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 ZIP file and extract the sample definition(s) from the link here and later import it (drag-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.

 

How can we improve this article?

Share additional info and suggestions