Class TranslationServices

Provides basic translation features via several Web interfaces

NOTE: These services may change their format or otherwise fail.

System.Object
  Westwind.Globalization.TranslationServices
public class TranslationServices : object

Class Members

MemberDescription

Constructor

GetBingAuthToken

Retrieves an oAuth authentication token to be used on the translate API request. The result string needs to be passed as a bearer token to the translate API.

You can find client ID and Secret (or register a new one) at: https://datamarket.azure.com/developer/applications/

public string GetBingAuthToken(string apiKey,     string ignored)

TranslateBing

public string TranslateBing(string text,     string fromCulture,     string toCulture,     string accessToken)

TranslateDeepL

public string TranslateDeepL(string text,     string fromCulture,     string toCulture)

TranslateGoogle

Translates a string into another language using Google's translate API JSON calls.

public string TranslateGoogle(string text,     string fromCulture,     string toCulture,     string googleApiKey)

TranslateGoogleApi

Translates a string into another language using Google's translate API JSON calls.

public string TranslateGoogleApi(string text,     string fromCulture,     string toCulture,     string googleApiKey)

ErrorMessage

Error message set when an error occurs in the translation service

TimeoutSeconds

Timeout for how long to wait for a translation

Requirements

Namespace: Westwind.Globalization
Assembly: westwind.globalization.dll

© West Wind Technologies, 2006 - 2019 • Updated: 01/24/18
Comment or report problem with topic