Lingualeo API console helper for translating words, optionally pronouncing them, visualizing pictures, and adding words to your dictionary.
curl -sfL https://raw.githubusercontent.com/trezorg/lingualeo/main/install.sh | bashInstall into a custom directory:
curl -sfL https://raw.githubusercontent.com/trezorg/lingualeo/main/install.sh | bash -s -- -d /your/bin/dirInstall a specific version:
curl -sfL https://raw.githubusercontent.com/trezorg/lingualeo/main/install.sh | bash -s -- -v v1.2.3go install github.com/trezorg/lingualeo/cmd/lingualeo@latestlingualeo requires your Lingualeo email and password.
You can provide credentials either:
- directly via CLI flags (
--email,--password), or - via a config file (
--config) in TOML, YAML, or JSON.
Default config file names searched automatically:
~/lingualeo.toml~/lingualeo.yml~/lingualeo.yaml~/lingualeo.json- same filenames in the current working directory
email = "email@gmail.com"
password = "password"
add = false
sound = true
player = "mplayer"
download = false
visualize = false
reverse_translate = false
request_timeout = "30s"
log_level = "INFO"email: email@gmail.com
password: password
add: false
sound: true
player: mplayer
download: false
visualize: false
reverse_translate: false
request_timeout: 30s
log_level: INFOShow help:
lingualeo --helpTranslate one or more words:
lingualeo --email you@example.com --password 'secret' hello worldUse a config file:
lingualeo --config ./lingualeo.toml helloAdd a word with custom translation:
lingualeo add -t "custom translation" helloPronounce words using a player:
lingualeo --sound --player "mpv --no-video" helloDownload sound before playing (for players that cannot stream URLs):
lingualeo --sound --download --player "mplayer" helloEnable reverse translation mode:
lingualeo --reverse-translate приветBuild:
make buildGenerate mocks:
make generateLint:
make lintRun tests:
make testFull local check before PR:
make clean cache generate lint test