Destination

Microsoft Text Translator
Create a Microsoft Text Translator Destination
-
Click the + icon on the Nexset that will be sent to the Microsoft Text Translator destination, and select the Send to Destination option from the menu.
-
Select the Microsoft Text Translator connector from the list of available destination connectors. Then, select the credential that will be used to connect to your Microsoft Azure Translator service, and click Next; or, create a new Microsoft Text Translator credential for use in this flow.
-
In Nexla, Microsoft Text Translator destinations can be created using pre-built endpoint templates, which expedite destination setup for common Microsoft Text Translator endpoints. Each template is designed specifically for the corresponding Microsoft Text Translator endpoint, making destination configuration easy and efficient.
• To configure this destination using a template, follow the instructions in Configure Using a Template.Microsoft Text Translator destinations can also be configured manually, allowing you to send data to Microsoft Text Translator endpoints not included in the pre-built templates or apply further customizations to exactly suit your needs.
• To configure this destination manually, follow the instructions in Configure Manually.
Configure Using a Template
Nexla provides pre-built templates that can be used to rapidly configure destinations to send data to common Microsoft Text Translator endpoints. Each template is designed specifically for the corresponding Microsoft Text Translator endpoint, making destination setup easy and efficient.
-
To configure this destination using a template, select the endpoint to which data will be sent from the Endpoint pulldown menu. Then, click on the template in the list below to expand it, and follow the instructions to configure additional endpoint settings.
Configure Manually
Microsoft Text Translator destinations can be manually configured to send data to any valid Microsoft Text Translator API endpoint. Manual configuration provides maximum flexibility for accessing endpoints not covered by pre-built templates or when you need custom API configurations.
With manual configuration, you can also create more complex Microsoft Text Translator destinations, such as destinations that send data to multiple endpoints or destinations that require custom request headers or parameters.
API Method
-
To manually configure this destination, select the Advanced tab at the top of the configuration screen.
-
Select the API method that will be used for calls to the Microsoft Text Translator API from the Method pulldown menu. Microsoft Text Translator API typically uses POST method for translation requests.
Data Format
- Select the format in which the Nexset data will be sent to the Microsoft Text Translator API from the Content Format pulldown menu. Microsoft Text Translator API expects JSON format for translation requests.
API Endpoint URL
- Enter the URL of the Microsoft Text Translator API endpoint to which data will be sent in the URL field. This should be the complete URL including the protocol (
https://), the API base URL (api.cognitive.microsofttranslator.com), the endpoint path (/translate), and required query parameters (e.g.,https://api.cognitive.microsofttranslator.com/translate?api-version=3.0&from=en&to=es). Include theapi-version,from, andtoquery parameters in the URL.
Ensure the API endpoint URL is correct and includes all required query parameters (api-version, from, to). The Microsoft Text Translator API endpoint URL should point to the /translate endpoint. You can test the endpoint using the Test button after configuring the URL.
Request Body
- Configure the request body that will be sent to the Microsoft Text Translator API. The request body should contain an array of text objects with a
Textproperty containing the text to translate, formatted as JSON. The request body format is typically[{"Text": "{message.text}"}]for single text translation, or you can use{message.json}to send the entire Nexset data as JSON.
The request body must be valid JSON and must match the Microsoft Text Translator API's expected format. The request body should contain an array of objects with a Text property. For detailed information about request body formats, supported languages, and translation options, see the Microsoft Translator Text API reference.
Save the Destination
- Once all of the relevant steps in the above sections have been completed, click the Next button to proceed with the rest of the data flow configuration, or click Save to save the destination configuration for later use.