Youdao::Translate
https://ai.youdao.com/product-fanyi-text.s
translate using youdao API
Installation
Add this line to your application's Gemfile:
gem 'youdao-translate'
And then execute:
$ bundle install
Or install it yourself as:
$ gem install youdao-translate
Usage
Youdao::Translate.get("hello")
Youdao::Translate.get("hello", from: "zh-CHS", to: "ja")
Youdao::Translate.get("hello", to: "ko")
Youdao::Translate.instance.get("hello")
Youdao::Translate.instance.get("hello", from: "zh-CHS", to: "ja")
Test
rspec -f d
bundle exec rubocop .
Contributing
Bug reports and pull requests are welcome on GitHub at https://gitlab.com/suifeng2012/youdao-translate.