jadetrans

command module
v0.0.0-...-7e22817 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 27, 2019 License: MIT Imports: 8 Imported by: 0

README

JadeTrans Usage

A very geeky command line translation tool.

Build Status MIT licensed Coverage Status Go Report Card

JadeTrans Usage

Features

  • Chinese <=> English
  • Speech
  • Others language support
  • Google translation engine

Installation

Go


go get -u github.com/archervanderwaal/jadetrans

jadetrans -h

Usage

Configuration

cd $HOME/.jadetrans
vim jadetrans.yaml
# add appKey and appSecret to jadetrans.yaml
# exp:
# youdao:
#   appKey: 
#   appSecret: 

If you don't have appKey and appSecret translated by youdao, go here and learn how to get appkey and appsecret translated by youdao.

Query

jadetrans <words>

Select engine

jadetrans <words> -e=youdao

Speech

jadetrans <words> -voice=1
#or
jadetrans <words> -voice=0

Documentation

Overview

Copyright (c) 2019 Archer VanderWaal.

A very geeky command line translation tool. Source code and other details for the project are available at GitHub:

https://github.com/archervanderwaal/jadetrans

Directories

Path Synopsis
Package config Provides loading local configuration.
Package config Provides loading local configuration.
Package engine implements translation support for the translation engine so that the need for translating text can be achieved by creating specific translation engine.
Package engine implements translation support for the translation engine so that the need for translating text can be achieved by creating specific translation engine.
Package path provides some tool functions related to the file system.
Package path provides some tool functions related to the file system.
Package utils Provides some tools about progress bar.
Package utils Provides some tools about progress bar.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL