0.0
No commit activity in last 3 years
No release in over 3 years
using open translation web api
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0
 Project Readme

pry-translator

Install

gem install pry-translator

Configure

open ~/.pryrc file, and add following snippet.

# for youdao translator configure
Pry.config.translator = :youdao
Pry.config.translator_keyfrom = KEYFROM
Pry.config.translator_key = KEY

# for baidu translator configure
Pry.config.translator = :baidu
Pry.config.translator_appid = APPID
Pry.config.translator_appsecret = APPSECRET

Usage

[1] pry(main)> t apple
苹果
[2] pry(main)> t how are you?
你好吗?

Other

有空改一下,支持语言方向和持支持google