From d0baaf4fe4f3b237998c162f1a8493d54210be1a Mon Sep 17 00:00:00 2001 From: Marco Minerva Date: Sat, 6 May 2017 19:16:31 +0200 Subject: [PATCH] Add method to get translation language names --- .../MicrosoftTranslatorPage.xaml | 4 +- .../MicrosoftTranslatorPage.xaml.cs | 22 +-- .../Microsoft.Toolkit.Uwp.Services.csproj | 1 + .../MicrosoftTranslator/ITranslatorService.cs | 30 +++- .../MicrosoftTranslator/ServiceLanguage.cs | 47 ++++++ .../MicrosoftTranslator/TranslatorService.cs | 157 ++++++++++++------ .../TranslatorServiceException.cs | 2 +- 7 files changed, 182 insertions(+), 81 deletions(-) create mode 100644 Microsoft.Toolkit.Uwp.Services/Services/MicrosoftTranslator/ServiceLanguage.cs diff --git a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Microsoft Translator Service/MicrosoftTranslatorPage.xaml b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Microsoft Translator Service/MicrosoftTranslatorPage.xaml index e8a796edea0..a383dd8ad6d 100644 --- a/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Microsoft Translator Service/MicrosoftTranslatorPage.xaml +++ b/Microsoft.Toolkit.Uwp.SampleApp/SamplePages/Microsoft Translator Service/MicrosoftTranslatorPage.xaml @@ -31,9 +31,9 @@ + SelectedValuePath="Code" />