Building Windows 8 Store Apps Using Microsoft Translator

The Microsoft Translator API is a hosted API that allows you to add machine translation to your app. It fully supports Windows Store Apps, so if you want to add localization to these apps, doing so is as easy as subscribing to and using the API. We’ve built out step-by-step instructions and assets that demonstrates how to do this this, showing a C#/XAML based app, built for the Windows 8 Store, which uses the MVVM design pattern.

Getting Started Guides and Assets:

Build a Twitter App with Translations

Want to know what people are saying about the latest product release or global news event across the world in 40+ languages? The Twitter app allows you to search for tweets that match a search term, and when those tweets are in a non-English language, it will translate them for you directly over the top of the existing text. We’ve also made the full code for the application available for you to download. The links above with provide you with the walkthroughs and assets to get started. 

View of Twitter App with Translations:


Close-up of one of the tweets, showing the translation:


Comments (2)

  1. Hi,

    Thanks for the walkthrough.  I was able to follow everything except the XAML part. I'm very new to XAML.  Here's what the walkthrough appears to recommend, however VS2012 indicated the markup is invalid, and the error displayed says "the property "content" is set more than once".  I'm not seeing where this is set more than once.  Anyone?

    <GridView ItemTemplate="{StaticResource TweetTemplate}" SelectionMode="None" ItemsSource="{Binding tweets}"></GridView>

       <DataTemplate x:Key="TweetTemplate">


                   <Rectangle Fill="#FFDA713F" HorizontalAlignment="Left" Height="115" Margin="10,11,0,0"

                VerticalAlignment="Top" Width="455" RadiusX="20" RadiusY="20"/>

               <TextBlock Foreground="White" HorizontalAlignment="Left" Height="50"

                   Margin="176,12,0,0" TextWrapping="Wrap" x:Name="txtTweet"

                   Text="{Binding Title}" VerticalAlignment="Top" Width="277" FontSize="12"/>

               <TextBlock Foreground="White" HorizontalAlignment="Left" Height="50"

                   Margin="176,72,0,0" TextWrapping="Wrap" x:Name="txtTrans"

                   Text="{Binding translatedText}" VerticalAlignment="Top" Width="277"


               <Image Source="{Binding ImageUri}" HorizontalAlignment="Left" Height="89"

                   Margin="20,20,0,0" VerticalAlignment="Top" Width="116"/>

               <TextBlock Foreground="White" HorizontalAlignment="Left" Height="17"

                    Margin="24,109,0,0" TextWrapping="Wrap" Text="{Binding Author}"

                   VerticalAlignment="Top" Width="150" FontSize="10"/>



    Thanks in advance,


  2. Laurence Moroney says:

    Did you download the app assets from the above link? That has full working code and XAML.

Skip to main content