Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow

Introduction

 
In this article, you will see how to detect language and translate text using Microsoft Translator Service and Microsoft Flow. I have created a simple SharePoint list, which contains Title, Original Language and Translated Text fields as shown below.
 
Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow 
 

Flow Design

 
Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow 
 
Get Subscription Key
  1. Navigate to Azure Portal here.
  2. In the left navigation, click Create a resource.
  3. In Azure Marketplace, select AI + Machine Learning and then click Translator Text.
  4. Enter the required details and click Create.
  5. It might take few minutes to deploy the resource. Click All Resources in the left navigation and then click the newly created translator text resource.
  6. Click Keys under Resource Management, copy the Key value.

Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow 

Create Flow
  1. Navigate to flow site here.
  2. In the top navigation, click My flows.
  3. Click Create from blank.
  4. Select When an item is created Select the Site Address and List Name as shown below.

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
  1. Click Next Step and search for Microsoft Translator as shown below. Select Detect Language

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
  1. Enter the following details and click Create.

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
    • Connection Name – user-friendly name for connection
    • Subscription Key – Copied from above Get Subscription Key section
  1. Select the dynamic content Title for Text field from previous action.

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
  1. Click Next Step and search for Microsoft Translator. Select Translate Text
  2. Select the dynamic content Title for Text from previous action – When an item is created. Select the target language as English as shown below.

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
  1. Click Next Step and add Update item action. Configure the values as shown below.

    Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
  1. Enter the Title for the flow and click on Save.

Test the Flow

Navigate to SharePoint list and create a new item with different language. Flow executes to update the list item as shown below.

Detect Language And Translate Text Using Microsoft Translator And Microsoft Flow
 

Summary

 
Thus in this article, you saw how to detect language and translate the text using Microsoft Translator and Flow.


Similar Articles