爱意满满的作品展示区。
yanng

用 go 写了一个 mac 下命令行翻译工具

  •  
  •   yanng · Feb 12, 2014 · 5010 views
    This topic created in 4647 days ago, the information mentioned may be changed or developed.
    目前功能很简单,命令行下英汉互译
    translate hello --> 你好
    translate r 你好 --> hello

    github地址:
    https://github.com/rnoldo/go-translate-cli

    我用起来挺好,希望对你有用
    Supplement 1  ·  Feb 12, 2014
    简化了一下
    from

    translate hello --> 你好
    translate r 你好 --> hello

    to

    translate hello --> 你好
    translate 你好 --> hello
    4 replies  •  1970-01-01 08:00:00 +08:00
    xiaket
    xiaket
    Feb 12, 2014
    1
    看了下代码, 貌似调了Google翻译, 这需要比较稳定的网络才行?
    yanng
    yanng
    OP
    Feb 12, 2014 via iPad
    2
    @xiaket 我机子用了smarthosts,用起来没啥问题
    jakwings
    jakwings
    Feb 13, 2014
    3
    可以看看这个 gawk 的实现:https://github.com/soimort/google-translate-cli
    ruandao
    ruandao
    Feb 18, 2014
    4
    一般都是 ctrl + cmd + d 或者,三个指头
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   1661 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 23:37 · PVG 07:37 · LAX 15:37 · JFK 18:37
    ♥ Do have faith in what you're doing.