# Detect Language

> `UiPath.MicrosoftTranslator.IntegrationService.Activities.DetectLanguage`

`UiPath.MicrosoftTranslator.IntegrationService.Activities.DetectLanguage`

Uses the [Detect - POST](https://docs.microsoft.com/en-us/azure/cognitive-services/translator/reference/v3-0-detect) API to detect language from a text.

## In the body of the activity

* **Text** - The text that language is to be inferred from.
* **Language Code** - Returns the detected language.
* **Is Translation Supported** - Returns a Boolean value, showing if translation is supported or not.

## Properties

### Common

* **DisplayName** - The display name of the activity. This field supports String type input.

### Misc

* **Private** - If selected, the values of variables and arguments are no longer logged at Verbose level.

### Output

* **ResponseStatus** - The status of the request (success/failure information). Enter a `ResponseStatus` variable (*UiPath.BAF.Models.ResponseStatus*). The `ResponseStatus` object includes three properties that you can use in other activities.
  + **Success** - `Boolean` - Specifies whether the API request was successful.
  + **ErrorCode** - `String` - The response error if the API request is unsuccessful (**Success**=*False*).
  + **Message** - `String` - The error message.
