TranslationProviderYandex

Wisej.Ext.Translation.TranslationProviderYandex

Namespace: Wisej.Ext.Translation

Assembly: Wisej.Ext.Translation (3.2.0.0)

Yandex translation provider.

public class TranslationProviderYandex : TranslationProviderBase

Constructors

TranslationProviderYandex()

Properties

ClientSecret

Stringarrow-up-right: The secret client-key or api-key for the provider.

Methods

Translate(text, from, to)

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

Parameter
Type
Description

text

The text to translate.

from

The source language ("en", "de", ...) or null/empty to ask the provider to auto detect the source language.

to

The target language ("en", "de", ...)

Returns: TranslationResult.

TranslateAsync(text, from, to, resultCallback)

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

Parameter
Type
Description

text

The text to translate.

from

The source language ("en", "de", ...) or null/empty to ask the provider to auto detect the source language.

to

The target language ("en", "de", ...)

resultCallback

Callback method that will receive the TranslationResult when ready.

Last updated

Was this helpful?