Greatest Command Line Language Translators for Linux


Get real time updates directly on you device, subscribe now.

The significance of Language translation functions can’t be overemphasized particularly for individuals who journey lots or talk with individuals who don’t share the identical language frequently.

At present, I introduce to you the perfect command-line based mostly translation instruments for Linux.

1. DeepL Translator CLI

DeepL Translator Cli is a free and open supply command line language translator that makes use of superior machine studying strategies to allow customers to translate textual content between languages in addition to to detect the language of the enter textual content. It’s powered by DeepL, a German tech firm and launched beneath the MIT license.

The languages it helps embody English (EN), German (DE), French (FR), Italian (IT), Dutch (NL), Spanish (ES), Russian, Portuguese, and Polish (PL) and whereas the terminal device is free, DeepL affords subscription plans for customers.

Set up DeepL Translator CLI in Linux

To put in DeepL Translator command-line device, first you must set up the most recent model of Node.js in your Linux distribution.

Subsequent, set up Yarn bundle dependency supervisor utilizing Debian bundle repository on Debian and Ubuntu distribution utilizing following instructions.

$ curl -sS | sudo apt-key add –
$ echo “deb steady primary” | sudo tee /and so on/apt/sources.record.d/yarn.record
$ sudo apt-get replace
$ sudo apt-get set up yarn

On CentOS, Fedora and RHEL distribution, you’ll be able to set up Yarn through RPM bundle repository.

# curl –silent –location | sudo tee /and so on/yum.repos.d/yarn.repo
# yum set up yarn [On CentOS/RHEL]
# dnf set up yarn [On Fedora]

Now set up DeepL Translator command-line device utilizing the next command.

$ yarn international add deepl-translator-cli

Confirm the set up standing by checking DeepL model.

$ deepl –version

DeepL works by making API calls to the principle web site at so, in the mean time, you must be on-line to make use of it. It reportedly runs on a supercomputer able to 5.1 petaFLOPS – sufficient pace to detect and translate languages in a blink.

DeepL Utilization Examples

# Translate textual content into German
$ deepl translate -t ‘DE’ ‘How do you do?’

# Pipe textual content from customary enter
$ echo ‘How do you do?’ | deepl translate -t ‘DE’

# Detect language
$ deepl detect ‘Wie geht es Ihnen?’

# For assist
$ deepl -h
$ deepl translate -h
$ deepl detect -h

2. Translate Shell

Translate Shell (beforehand Google Translate CLI) is a free and open supply command-line language translator device powered by Google Translate, Yandex Translate, Apertium, and Bing Translator. It’s obtainable for many POSIX-compliant methods together with Home windows (through Cygwin, WSL, or MSYS2), GNU/Linux, macOS, and BSD.

Translate Shell permits customers to make use of it for easy translations or as an interactive shell. For easy translations, Translate Shell provides particulars of the translated textual content by default except when made to do exclude the small print utilizing the key phrase, transient.

$ trans ‘Saluton, Mondo!’
Saluton, Mondo!

Good day, World!

Translations of Saluton, Mondo!
[ Esperanto -> English ]
Saluton ,
Good day,
Mondo !

$ trans -brief ‘Saluton, Mondo!’
Good day, World!

When used as an interactive shell, it can translate the texts as you enter them line by line. For instance,

$ trans -shell -brief
> Rien ne réussit comme le succès.
Nothing succeeds like success.
> Was mich nicht umbringt, macht mich stärker.
What doesn’t kill me makes me stronger.
> Юмор есть остроумие глубокого чувства.
Humor has a deep sense of wit.
> 幸福になるためには、人から愛されるのが一番の近道。
In an effort to be comfortable, one of the best ways is to be beloved by individuals.

Set up Translate Shell in Linux

My beneficial obtain technique is so that you can seize the self-contained executable file from right here, place it in your path, and run the next instructions:

$ wget
$ chmod +x ./trans

For extra particulars on set up and utilization verify its official GitHub web page right here.

Have you learnt different superior command line textual content translator apps for Linux? Add your options within the feedback part beneath.

Source link

Leave A Reply

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More