Translate
UiPath.MicrosoftTranslator.Activities.TranslateActivity
The Translate activity uses the Microsoft Translator API to translate the provided text into the required language.
How It Works
The following steps are an example of how the activity works from design time (i.e., the activity dependencies and input/output properties) to run time.
- Complete the Setup steps.
- Add the Microsoft Translator Scope activity to your project.
- Add the Translate activity inside the Microsoft Translator Scope activity.
- Create and enter a
Stringsor aStringvariables for the Intput properties. - Create and enter a
Stringvariable for the Output property.
Properties
Common
- DisplayName - The display name of the activity. This field supports only
StringsorStringvariables.
Input
- From - The language of the input text. This field supports only
StringsorStringvariables. If not provided, the From language will be auto-detected. Languages need to be provided as BCP 47 language tags. - Text - The text to be translated. This field supports only
StringsorStringvariables. For a complete list of the supported languages, please visit the official Microsoft Documentation. - To - The language of the output text. This field supports only
StringsorStringvariables. If not provided, the From language will be auto-detected. Languages need to be provided as BCP 47 language tags.
Misc
- Private - If selected, the values of variables and arguments are no longer logged at Verbose level.
Options
- Profanity Action - Specifies how profanities should be treated in translations. Select one of the three options available: NoAction, Deleted, Market.
- Deleted removes the sections from the text.
- Market replaces the sections with a * character.
- Profanity Marker - Specifies how profanities should be treated in translations. Select one of the two options available: Asterisk, Tag.
Output
- Translation - The result of the translation. This field supports only
Stringvariables.