Skip to content

CLI-Translate is a powerful multilingual text translation console utility developed in Python. This program provides a fast and reliable way to translate words, phrases, and even whole sentences into different languages.

License

Notifications You must be signed in to change notification settings

Qu1nel/CLI-Translate

Repository files navigation

logo

CLI Translate

CLI-Translate is a text translation console utility developed in Python.

contributors last update forks stars open issues

python Version project version license linting tests coverage tests


Contents

About CLI Translate

CLI-Translate is a powerful multilingual text translation console utility developed in Python. This program provides a fast and reliable way to translate words, phrases, and even whole sentences into different languages.

Features

  • Fast and reliable - it uses the same servers that translate.google.com uses
  • Author's translation into paired language. Those. there is language 1 and there is language 2, when the program receives language 1, it immediately translates it into language 2, and when it receives language 2, it translates it into language 1.
  • The translation is placed on the clipboard.

Note use

  • The maximum character limit on a single text is 15k.
  • Due to limitations of the web version of google translate, this API does not guarantee that the library would work properly at all times.
  • Important: If you want to use a stable API, I highly recommend you to use Google's official translate API.
  • If you get HTTP 5xx error or errors like #6, it's probably because Google has banned your client IP address.

Screenshots

Installation

Clone the repository, install all requirements and run the file run.py.

Requirements

The Python interpreter version 3.11+ and preferably poetry

Install requirements with poetry:

poetry install

Getting started

Clone this repository and navigate to it with the command:

git clone https://github.com/Qu1nel/CLI-Translate.git
cd CLI-Translate/

Windows

python run.py

Linux

python3 run.py

Documentation

For full help with make commands, you can use the command:

make help

Flags

-d/--dest [ru|en|de|it|fr|ja]

Forcibly translate into the selected language.

Developers

License

MIT © Ivan Kovach

About

CLI-Translate is a powerful multilingual text translation console utility developed in Python. This program provides a fast and reliable way to translate words, phrases, and even whole sentences into different languages.

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages