【文件属性】:
文件名称:yatran:Yandex 翻译服务的 Ruby 客户端 | Yandex 翻译器的 Ruby 客户端
文件大小:16KB
文件格式:ZIP
更新时间:2021-06-30 09:04:08
Ruby
Yandex 翻译引擎的 Ruby 非官方客户端
构建状态
Yandex translate API v1 不再可用,所以请不要使用它
例子
1.9.2p320 :001 > require 'yatran'
=> true
1.9.2p320 :002 > "Hello world".lang
=> "en"
1.9.2p320 :003 > "Hello world".language
=> "en"
1.9.2p320 :004 > "Hello world".en_ru
=> "Привет, мир!"
1.9.2p320 :005 > "Hello world".en_ru.ru_fr
=> "Bonjour tout le monde!"
1.9.2p320 :006 > "Hello world".en_ru.ru_it
=> "Ciao, mondo!"
1.9.2p3
【文件预览】:
yatran-master
----.gitignore(154B)
----bin()
--------yatran(667B)
----yatran.gemspec(879B)
----LICENSE(1KB)
----spec()
--------class_methods_spec.rb(175B)
--------language_methods_spec.rb(137B)
--------translate_methods_spec.rb(471B)
--------spec_helper.rb(841B)
----README.md(3KB)
----lib()
--------yatran()
--------yatran.rb(1KB)
----Gemfile(91B)
----Rakefile(234B)