Microsoft Translator Service

The Microsoft Translator Service allows you to translate text to various supported languages.

Set up Microsoft Translator Service

Signup for Microsot Translator Service using your Microsoft Azure subscription account. There is a free trial option for that allows you to translate up to 2,000,000 characters per month.

Example Syntax


// using Microsoft.Toolkit.Uwp.Services.MicrosoftTranslator;

await TranslatorService.Instance.InitializeAsync("<translator service key");

// Translates the text to Italian.
var translatedText = await TranslatorService.Instance.TranslateAsync("Hello everyone!", "it");

Example

Microsoft Translator Service Sample Page

Requirements (Windows 10 Device Family)

Device family Universal, 10.0.10586.0 or higher
Namespace Microsoft.Toolkit.Uwp.Services

API

NuGet Packages Required

Microsoft.Toolkit.Uwp.Services

See the NuGet Packages page for complete list.