# Microsoft Machine Translator connector

## Overview

The *Translation* module provides an out-of-the-box Microsoft Machine Translator connector with a quick setup, which enables you to utilize Azure AI Translator service. This is a neural machine translation service that you use to translate text and documents instantly or in batches (across a broad range of supported languages).

## Create a Translator resource

To configure this connector, you must first sign up for Azure AI Translator v3 service in Microsoft Azure portal.\
You need an endpoint URL and a resource key generated for authenticating requests to the Azure AI Translator service API.\
For detailed instructions, see Microsoft documentation » [Create a Translator resource](https://learn.microsoft.com/en-us/azure/ai-services/translator/create-translator-resource).

## Configure the connector

To configure the connector in Sitefinity CMS backend, perform the following:

1. From [Sitefinity NuGet Repository](http://nuget.sitefinity.com/#/home), download and install `Progress.Sitefinity.Translations.MicrosoftMachineTranslatorConnector` NuGet package.
2. Build and run your project.
3. In Sitefinity CMS backend, navigate to *Administration* » *Settings* » *Advanced* » *Translations* » *Connectors* » *MicrosoftMachineTranslatorConnector* » *Parameters*.
4. Set the `apiKey` parameter to the resource key generated by the Azure AI Translator.
5. Set the `baseURL` parameter to one of the endpoint URLs supported by the Azure AI Translator API.\
   For more information, see Microsoft documentation » Translator v3.0 » [Base URLs](https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-reference#base-urls).\
   If you do not configure the `baseURL` parameter, the system uses the *Global (non-regional)* base URL.
6. Set the `region` parameter to one of the regions supported by the Azure AI Translator API.\
   If you have not changed the default base URL, you do not need to configure the `region` parameter.\
   For more information, see Microsoft documentation » Authenticate requests to Azure AI services » [Supported regions](https://learn.microsoft.com/en-us/azure/ai-services/authentication#supported-regions).

   > info  **NOTE**: The *Azure geography* of the base URL must include the region that you have configured.
7. Optionally, you may configure additional parameters of the Azure AI Translator service.\
   For more information, see Microsoft documentation » Translator v3.0 »  [Optional parameters](https://learn.microsoft.com/en-us/azure/ai-services/translator/reference/v3-0-translate#optional-parameters).\
   To do this, click *queryString* on the left and then in *Value*, enter the additional parameters.

   > info  **NOTE**: You should format the string in the *Value* field using the *query string* format without the leading `?` or `&` characters. Use `&` to separate the added parameters.
8. Navigate back to *MicrosoftMachineTranslatorConnector*.
9. Select the *Enabled* checkbox to activate the connector.
10. Deselect the *Strip HTML tags* checkbox.
11. Save your changes.

> success  **RESULT**: The connector appears as an option in the *Translation service* dropdown box when you are sending items for translation.
