Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ewen-lbh/wikitrad

Translate terms from the command line using Wikipedia
https://github.com/ewen-lbh/wikitrad

cli python translation wikipedia

Last synced: 21 days ago
JSON representation

Translate terms from the command line using Wikipedia

Awesome Lists containing this project

README

        

# wikitrad

![demo](./demo.gif)

## Installation

_wikitrad_ is available [on PyPI](https://pypi.org/project/wikitrad):

```sh
pip install wikitrad
```

### Arch Linux

Arch users can install it from [the AUR](https://aur.archlinux.org/packages/wikitrad)

```sh
paru wikitrad # or any AUR helper
```

You can also get a bleeding edge release with [_wikitrad-git_](https://aur.archlinux.org/packages/wikitrad-git).

## Usage

Language codes refer to the language codes used by wikipedia: `en` for `en.wikipedia.org`, `fr` for `fr.wikipedia.org`, etc.

### Without specifying the source language

```sh
wikitrad "word to translate" target_language_code
```
### specifying the source language

```sh
wikitrad source_language_code "word to translate" target_language_code
```