[][src]Crate translate_core

Structs

Google
Yandex

Enums

Langage

The langage Enum which has:

Traits

EDetect

Trait for langage Detection

ETranslate

Trait for text Translation

Functions

detect

This function detect the langage of a text. Actually only Yandex as the EDetect trait implemented You need to pass arguments: (,<text: String>,<The callback function which take an Option parameter)

google
string_to_langage

Convert lang code like EN, FR in lower of upper case to a Langage:: Supported langs: [EN, FR, DE, ES, NL, IT, RU]

translate

This function translate a text from the first langage to the second. Actually Google and Yandex as the ETranslate trait implemented You need to pass arguments: (,<text: String>,<srclang: Langage>,<outlang: Langage>,<The callback function which take an Option parameter)

yandex