Skip to content

About

AI-powered multilingual language translator built with Flask, JavaScript, and SQLite.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

🌍 AI Language Translator

A modern multilingual language translator built using Flask, JavaScript, and SQLite.

The application allows users to translate text between multiple languages, automatically detect the input language, save translation history, restore previous translations, copy translated text, listen using text-to-speech, and manage translation history through a clean and intuitive interface.

✨ Features

  • 🌍 Translate text between multiple languages
  • 🤖 Automatic language detection
  • 🔄 Swap source and target languages
  • 📋 Copy translated text
  • 🔊 Text-to-Speech support
  • 🕒 Translation history
  • ♻️ Restore previous translations
  • 🗑️ Delete individual history items
  • 🧹 Clear all translation history
  • ⚡ Loading state while translating
  • ⌨️ Ctrl + Enter keyboard shortcut
  • 🔢 Live character counter
  • 💾 SQLite database for persistent history
  • 🎨 Clean and responsive user interface
  • 🔔 Toast notifications

🚀 Tech Stack

Backend

  • Python
  • Flask
  • SQLite
  • Deep Translator
  • Langdetect
  • REST APIs

Frontend

  • HTML5
  • CSS3
  • JavaScript

Development Tools

  • Git
  • GitHub
  • PyCharm

📂 Project Structure

TranslatorApp/
│
├── database/
│   ├── database.py
│   └── translations.db
│
├── services/
│   ├── translator.py
│   ├── language.py
│   └── speech.py
│
├── static/
│   ├── css/
│   │   └── style.css
│   │
│   └── js/
│       ├── script.js
│       ├── languages.js
│       └── toast.js
│
├── templates/
│   └── index.html
│
├── app.py
├── requirements.txt
└── README.md

⚙️ Installation

1. Clone the repository

git clone https://github.com/your-username/TranslatorApp.git

2. Navigate to the project folder

cd TranslatorApp

3. Create a virtual environment

python -m venv .venv

4. Activate the virtual environment

Windows

.venv\Scripts\activate

macOS / Linux

source .venv/bin/activate

5. Install dependencies

pip install -r requirements.txt

6. Run the application

python app.py

7. Open your browser

http://127.0.0.1:5000

📸 Screenshots

Home Page

Home

Translation Example

Translation

Translation History

History

🔮 Future Improvements

  • 🤗 Integrate Hugging Face translation models
  • ⭐ Save favorite translations
  • 🔍 Search translation history
  • 📤 Export translation history as PDF or CSV
  • 🌙 Light/Dark mode toggle
  • 📱 Improve mobile responsiveness
  • 🌐 Deploy the application online

👩‍💻 Author

Hiba Ismail

  • 🎓 Bachelor of Computer Science
  • 🤖 Aspiring AI / Machine Learning Engineer
  • 📍 Karachi, Pakistan

About

AI-powered multilingual language translator built with Flask, JavaScript, and SQLite.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages