Translation
The Translation component adds language translation capabilities to any Wisej.NET application. It uses Yandex, Google, Bing, or a custom defined provider (Google and Bing are not yet implemented – only Yandex is currently supported). The component accepts any text and fires an event on the server when the translation is completed.
Code Example
This will translate "hello how are you doing friend" from English (en) to German (de). The result is stored in the variable TR.
using (Translation T = new Translation())
{
T.ClientSecret = "...";
TranslationResult TR = T.Translate("hello how are you doing friend", "en", "de");
}
How to Use
The Translation extension can be added to a Wisej.NET project using NuGet Package Manager.