Wanzyee Studio
ILanguageTranslator

Interface of a translator to convert a text between languages. More...

Inherited by ILanguageInstantTranslator.

Public Member Functions

Task< string > Translate (string text, CultureInfo target=null, CultureInfo source=null)
 Translate specified text from source language to target language. More...
 

Detailed Description

Interface of a translator to convert a text between languages.

Member Function Documentation

Task<string> Translate ( string  text,
CultureInfo  target = null,
CultureInfo  source = null 
)

Translate specified text from source language to target language.

Parameters
textText.
targetTarget language, current language by default.
sourceSource language, auto detection by default.
Returns
The task of the translation.

Implemented in GoogleLegacyLanguageTranslator, and MyMemoryLanguageTranslator.