class Glosbe::Client

Defined in:

glosbe/client.cr

Constant Summary

API_URL = "https://glosbe.com/gapi_v0_1"

Instance Method Summary

Instance Method Detail

def tm(from : String | Symbol, dest : String | Symbol, phrase : String, page : Integer = 1, page_size : Integer = 30) : TmResponse #

Access translation memory (examples of word usage).

client.tm("ru", "eo", "привет")

[View source]
def translate(from : String | Symbol, dest : String | Symbol, phrase : String, tm : Bool = false) : TranslateResponse #

Translate from from language into dest. Include examples if #tm is true.

client.translate("ru", "eo", "привет")

[View source]