C# Class LitDev.LDTranslate

Afficher le fichier Open project: litdev1/LitDev

Méthodes publiques

Méthode 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

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

Method Details

Languages() public static méthode

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
Résultat Primitive

Translate() public static méthode

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.
Résultat Primitive