Skip to content

andresys/yandex_translate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

yandex_translate.rb

Easy YandexTranslate API for Ruby

Example:

require './yandex_translate'

YandexTranslate.API_KEY = "trnsl.1.1.20160809T124007Z.a9b531dd7173f058.62cd21d34fdfcb33cf9fb2bd3a3d5f1a67336193"

YandexTranslate.get_langs lang # default lang = 'ru'
YandexTranslate.detect text
YandexTranslate.translate text, lang # default lang = 'ru'

# or

puts 'Hello world'.translate

About

Easy YandexTranslate API for Ruby

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages