Open Sidebar
Close Sidebar
CrystalDoc.info
Source code
Shards.info
yandex-translator
master
Yandex
Translator
Built with Crystal 1.9.2
2023-10-07 21:27:49 UTC
class
Yandex::Translator
Yandex::Translator
Reference
Object
Defined in:
yandex/translator.cr
Constant Summary
BASE_URL
=
"https://translate.yandex.net/api/v1.5/tr.json"
Constructors
.new
(api_key : String)
Instance Method Summary
#detect
(text)
#langs
#translate
(text, lang)
#visit
(address, options = {}
of
Symbol
=>
String
)
Constructor Detail
def self.
new
(api_key : String)
#
[
View source
]
Instance Method Detail
def
detect
(text)
#
[
View source
]
def
langs
#
[
View source
]
def
translate
(text, lang)
#
[
View source
]
def
visit
(address, options = {}
of
Symbol
=>
String
)
#
[
View source
]