Translate phrases from command line using Wikipedia
wikilate PHRASE [-s SOURCE_LANG] [-d DEST_LANG[,DEST_LANG...]]
Translates given PHRASE
from SOURCE_LANG
(en
by default)
to one or more DEST_LANG
s, (de
, fr
, es
and pl
by default), using titles of Wikipedia articles.
Example:
$ wikilate lentil -d de,pl,es
de: Linse (Botanik)
es: Lens culinaris
pl: Soczewica jadalna
You can use standard Stack:
$ git clone git://github.com/Xion/wikilate.git
$ cd wikilate
$ stack install
If your ~/.local/bin
directory is in $PATH
, you should be able
to use the wikilate
command now.