DEV Community

Cover image for Linux User living in Latin America? Install this Command-Line translator!
Paul Preibisch
Paul Preibisch

Posted on

Linux User living in Latin America? Install this Command-Line translator!

Wow, my brain is totally blown today! Currently, I am living in Latin America as a digital nomad, and discovered an amazing command line translator for Linux!

sudo apt-get install translate-shell
Enter fullscreen mode Exit fullscreen mode

Next edit your ~/.zsrc or ~/.bashrc
and add the following environmental vars

export SOURCE_LANG=en
export TARGET_LANG=es
Enter fullscreen mode Exit fullscreen mode

now apply changes

source ~/.zshrc
Enter fullscreen mode Exit fullscreen mode

Now you can translate!

trans bueno
Enter fullscreen mode Exit fullscreen mode

(Use -I for interactive mode)

Get more help here:

man trans
Enter fullscreen mode Exit fullscreen mode

Top comments (0)