TranslationProviderBase

Wisej.Ext.Translation.TranslationProviderBase

Namespace: Wisej.Ext.Translation

Assembly: Wisej.Ext.Translation (3.2.0.0)

Base class for the translation providers.

public class TranslationProviderBase

Properties

String: The client-id for the provider.

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

Methods

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

ParameterTypeDescription

text

The text to translate.

from

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

to

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

Returns: TranslationResult. An instance of TranslationResult.

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

ParameterTypeDescription

text

The text to translate.

from

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

to

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

resultCallback

Callback method that will receive the TranslationResult when ready.

Inherited By

NameDescription

Yandex translation provider.

Last updated