A command line tool help you trans other lauguages to Chinese each other


Keywords
trans, terminal, command-line-tool, python, python3, translation
License
MIT
Install
pip install ptrans==0.3.2

Documentation

Command Line Translation Tool

Requirements

  • Python 3.5+
  • Works on Linux,Mac OSX

Installation

$ pip install ptrans

Usage

$ trans [word] {parameters}

Examples

The default is to translate Chinese into English. If the input is not Chinese, it is translated into Chinese. You can add the parameters in the following example to translate Chinese into other languages.

$ trans 你好
$ trans 你好 -e
$ trans 你好 --english

translate into Japanese

$ trans 你好 -j
$ trans 你好 --japanese

translate Japanese into Chinese

$ trans こんにちは

translate other supported language

-e --english      English
-j --japanese     Japanese
-k --koran        Korean
-f --franch       Franch
-p --portuguesa   Portuguesa
-es --espana      Espana

Screenshots

ChineseToEnglish ChineseToJapanese EnglishToChinese EnglishToJapanese EnglishToKorean