class Google::Translate

Included Modules

Defined in:

translate/detection_result.cr
translate/translate.cr
translate/translation_result.cr

Constant Summary

TRANSLATE_URI = URI.parse("https://translate.googleapis.com")

Constructors

Instance Method Summary

Constructor Detail

def self.new(auth : Google::Auth | Google::FileAuth | String, user_agent : String | Nil = nil) #

[View source]

Instance Method Detail

def detect_language(text : String | Array(String)) #

[View source]
def languages(target : String = "en", model : String | Nil = nil) #

[View source]
def translate(text : String | Array(String), to target : String, from source : String | Nil = nil, format : String = "text", model : String = "nmt") #

[View source]