Sometimes it is useful to translate text directly in your application. Microsoft offers a free translation service called Microsoft Translator, and getting started only takes a few steps.
Go to https://www.bing.com/developers and create an account. You will receive an ID to use the service.
Create a new project in Visual Studio.
Add a service reference. The service address is: https://api.microsofttranslator.com/V2/Soap.svc
Add a service reference to the project
Use the service in your application.
C#
LanguageServiceClient service = new LanguageServiceClient();
const string text = "Texte à traduire en anglais.";
const string appId = "Votre AppId";
Console.WriteLine(service.Translate(appId, text, "fr", "en"));
For details on the functions offered by the service: https://msdn.microsoft.com/en-us/library/ff512435(v=MSDN.10).aspx
Do you have a question or a suggestion about this post? Contact me!