What is Microsoft Translator?

The Text Translation AI model in Power Apps allows developers to translate text from one language to another using prebuilt AI capabilities. It leverages cloud-based intelligence to detect the source language and convert it into a target language of your choice.

This feature is especially useful for:

In Power Apps, this service is exposed as an AI model that you can easily use without complex coding.

AI Model Overview

Output Fields Explained:

Step-by-Step Implementation in Power Apps

Step 1: Create a Canvas App

Step 2: Add AI Model

1

TextTranslationInternal model

2

Step 3: Add UI Controls

Insert the following controls:

3

Step 4: Configure Controls

4

Label (Instruction)

Text = "Select Language"

Dropdown (Languages)

Set Items property:

[
    "en",
    "hi",
    "fr",
    "es",
    "de",
   "hi",
    "ar",
    "tr"
]

These are language codes:

Step 5: Button Setup

Set Text property:

"Translate"

Set OnSelect property:

5

If(
    IsBlank(TxtLanguage.Text),
    Notify("Please enter text to translate", NotificationType.Warning),
    Set(
        translatedText,
        'TextTranslationInternal model'.Predict(
            TxtLanguage.Text,
            { 'Translate To': ddlDestinationLang.Selected.Value }
        ).Text
    )
)

Step 6: Display Output

Add a label and set:

6
Text = translatedText

How It Works

  1. User enters text

  2. Selects target language

  3. Clicks Translate

  4. AI model processes the text

  5. Translated result is displayed instantly

Additional Outputs (Advanced Usage)

You can also extract more information:

📌 Get Translated Text

'TextTranslationInternal model'.Predict(...).Text

📌 Get Detected Language

'TextTranslationInternal model'.Predict(...).DetectedLanguage

📌 Get Confidence Score

'TextTranslationInternal model'.Predict(...).DetectedLanguageConfidence

Real-World Use Cases

This feature is extremely useful in:

Key Benefits

Conclusion

Using the Text Translation AI model in Power Apps allows you to build smart, multilingual applications quickly. By leveraging Azure Cognitive Services, you can deliver seamless communication across languages, making your apps more inclusive and globally accessible.