Skip to content

Command Line Interface to translate words

License

Notifications You must be signed in to change notification settings

andys8/translate-cli

Repository files navigation

translate-cli

Command Line Interface to translate words. The current translation supports german and english words. Input will be translated in both directions.

~ translate golden
[en] golden
[en] gold
[en] or
[en] aureate
[en] gilded
[de] golden
[de] goldgelb
[de] goldig
[de] Goldfarbe
[de] goldene Farbe

Initial setup

stack setup

Build

stack build

Run

NPM

  • npm i -g @andys8/translate-cli
  • translate <text-to-translate>

Binary

  • Download compressed binary
  • Add manually to PATH
  • translate <text-to-translate>

Build from sources

  • Setup stack
  • stack exec translate -- <text-to-translate> to translate

Credits

Glosbe API is used for translation.