The Simple Language Translator is a Python-based tool that allows users to translate text from one language to another using machine translation techniques. This tool leverages the deep_translator library, specifically the Google Translator API, to provide accurate translations.
- Translate text from any language to a specified target language.
- Automatically detect the source language.
- Supports multiple languages using language codes (e.g., 'es' for Spanish, 'fr' for French).
- Python 3.x
deep_translatorlibrary
To get started, clone this repository and install the required dependencies:
git clone https://github.com/Wajiha-Batool5/CodeAlpha_Project_LanguageTranslationTool.git
cd <repository-directory>
pip install deep-translator
-
Run the script:
python translator.py -
Follow the prompts:
- Enter the text you want to translate.
- Enter the target language code (e.g., 'es' for Spanish, 'fr' for French).
-
The translated text will be displayed.