Skip to content

qventymr/shell-translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 

Repository files navigation

Shell Translator

A simple command-line translation tool written in Python that automatically detects the source language and translates text to the target language.

Features

  • 🌐 Automatic language detection - detects the source language automatically
  • 🔄 Multi-language support - supports translation between multiple languages
  • 🚀 Easy to use - simple command-line interface
  • Fast translation - quick response times

Installation

Prerequisites

  • Python 3.6 or higher
  • pip (Python package manager)

Install dependencies

pip install translate langdetect

Download the script

git clone https://github.com/qventymr/shell-translator.git
cd shell-translator
mv main.py translator

Make Executable

chmod +x translator

Adding to PATH

sudo mv translator /usr/local/bin/
mkdir -p ~/.local/bin
mv translator ~/.local/bin/
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc

Usage

translator "Hello world" -l es

About

A command-line translation tool that automatically detects input language and translates text to any target language.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages