Skip to main content

TranslationProviderYandex

Namespace: Wisej.Ext.Translation

Assembly: Wisej.Ext.Translation

Yandex translation provider.

public class TranslationProviderYandex : TranslationProviderBase

Constructors

Instance memberTranslationProviderYandex()

Properties

Instance memberClientSecret

String: The secret client-key or api-key for the provider.

Methods

Instance memberTranslate(text, from, to)

Invokes the translation service provider and returns the result of the request in an instance of the TranslationResult class.

ParameterTypeDescription
textStringThe text to translate.
fromStringThe source language ("en", "de", ...) or null/empty to ask the provider to auto detect the source language.
toStringThe target language ("en", "de", ...)

Returns: TranslationResult.

Instance memberTranslateAsync(text, from, to, resultCallback)

Invokes the translation service provider asynchronously and returns the result of the request in an instance of the TranslationResult class.

ParameterTypeDescription
textStringThe text to translate.
fromStringThe source language ("en", "de", ...) or null/empty to ask the provider to auto detect the source language.
toStringThe target language ("en", "de", ...)
resultCallbackAction<TranslationResult>Callback method that will receive the TranslationResult when ready.