code_translate

代码翻译工具,使用第三方翻译 api 将代码中的中文翻译为英文

安装和使用 | Install && Usage

# go install
# code_translate -cp ./test -cs .go -ai ************** -ak ************** -tm 1
mode1(all) => test/test.go
模块相关事件执行顺序 -> Execution sequence of module related events
服务端 -> Server
启动服务 -> Start service
停止服务 -> Out of Service
客户端 -> client
客户端启动 -> Client startup
客户端处理消息 -> Client processing messages
客户端处理错误 -> Client processing error
客户端关闭 -> Client shutdown

选项 | Option

  -ai string
        appid
  -ak string
        appkey
  -cp string
        code path (default ".")
  -cs string
        code suffix
  -tm int
        translate mode:
        0(default)->translate notes only
        1->translate all

依赖项 | Dependencies

代码统计 | Code statistics

===============================================================================
 Language            Files        Lines         Code     Comments       Blanks
===============================================================================
 Go                      6          462          395           26           41
===============================================================================
 Total                   6          462          395           26           41
===============================================================================

截图 | Screenshot