A robust, web-based application that provides real-time text translation between multiple languages. Built using HTML, CSS, and Vanilla JavaScript, this project leverages an informal Google Translate endpoint to provide its functionality.
- Live Demo Link: Js-TXT-Translator
- Multi-Language Support: Translate text between 58 different languages.
- Real-time Translation: Get instant results as you type, with debouncing to optimize performance.
- Auto-Detect Language: Automatically identifies the source language.
- File Upload: Translate content directly from
.txtfiles. - Download Translation: Save the translated text as a
.txtfile. - Dark Mode: A sleek dark mode for comfortable viewing in low-light environments.
- Responsive Design: Fully optimized for desktop, tablet, and mobile devices.
- Frontend: HTML5, CSS3, JavaScript (ES6+)
- API: An unofficial, free endpoint from Google Translate.
- Deployment: GitHub Pages
To get a local copy up and running, follow these simple steps.
- A modern web browser (e.g., Chrome, Firefox, Edge).
- A code editor (e.g., VS Code).
- Clone the repository:
git clone https://github.com/alokzef/Js-TXT-Translator.git
- Navigate to the project directory:
cd Js-TXT-Translator - Open the
index.htmlfile in your web browser to view the application.
This project uses an unofficial, undocumented API endpoint from Google Translate (translate.googleapis.com). This endpoint is not intended for production use and may be subject to rate-limiting, breaking changes, or discontinuation by Google at any time.