wikitrans

Crates.iowikitrans
lib.rswikitrans
version0.1.2
sourcesrc
created_at2018-09-22 20:59:41.620817
updated_at2019-01-17 20:25:36.19805
descriptionSuper simple CLI tool for translating words/terms using Wikipedia.
homepagehttps://gitlab.com/timvisee/wikitrans
repositoryhttps://gitlab.com/timvisee/wikitrans
max_upload_size
id86040
size567,103
Tim Visée (timvisee)

documentation

README

Build status on GitLab CI Newest release on crates.io Number of downloads on crates.io Project license

wikitrans

Super simple CLI tool for translating words/terms using Wikipedia.

Services such as Google Translate usually aren't accurate for translating technical terms, this tool provides an alternative by using the Wikipedia database with user defined translations.

wikitrans usage demo
No demo visible here? View it on asciinema.

This tool uses skim as interactive selection interface.

Usage

Using this tool is stupidly simple:

# Translate term with interactive language selection
wikitrans rust

# Translate term with specified languages
wikitrans rust --language en --translate nl rust
# or
wikitrans rust -l en -t nl rust

Installation

To install this tool, clone the repository and install it with cargo.

First make sure you meet the following build requirements:

Then use the following commands:

# Clone the repository
git clone https://gitlab.com/timvisee/wikitrans.git

# Compile and install wikitrans
cargo install --path wikitrans

# To update, use
cargo install --path wikitrans --force

Help

$ wikitrans --help

wikitrans 0.1.2
timvisee <timvisee@gmail.com>
Translate terms using Wikipedia

USAGE:
    wikitrans [OPTIONS] <TERM>...

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -l, --language <language>      The search language tag [aliases: search]
    -t, --translate <translate>    The translate language tag

ARGS:
    <TERM>...    The term to search and translate

License

This project is released under the GNU GPL-3.0 license. Check out the LICENSE file for more information.

Commit count: 42

cargo fmt