C# Class LitDev.LDTranslate

Mostrar archivo Open project: litdev1/LitDev

Public Methods

Method Description
Languages ( ) : Primitive

Get an array of language codes and their language. The array indices are the required language codes for the Translate method.

Translate ( Primitive input, Primitive languageFrom, Primitive languageTo ) : Primitive

Translate a text from one language to another.

Private Methods

Method Description
GetHeader ( ) : void
GetLanguageNames ( List languages ) : List
GetLanguagesForTranslate ( ) : List
TranslateMethod ( string sourceText, string langFrom, string langTo ) : string

Method Details

Languages() public static method

Get an array of language codes and their language. The array indices are the required language codes for the Translate method.
public static Languages ( ) : Primitive
return Primitive

Translate() public static method

Translate a text from one language to another.
public static Translate ( Primitive input, Primitive languageFrom, Primitive languageTo ) : Primitive
input Primitive The text to translate.
languageFrom Primitive The language code to translate from.
languageTo Primitive The language code to translate to.
return Primitive