LinguaSwap

LinguaSwap is a modern full-stack language translation platform built using the MERN Stack – MongoDB, Express.js, React, and Node.js.
The application instantly translates text, voice, and documents across multiple languages with a smooth, user-friendly experience. It supports advanced features like speech-to-text, text-to-speech, translation history, file upload/download, and analytics tracking.
The platform uses a premium glassmorphism UI with animations and a responsive design to deliver a modern, interactive translation experience.

LinguaSwap Img 1
LinguaSwap Img 2
LinguaSwap Img 3
LinguaSwap Img 4
LinguaSwap Img 5
LinguaSwap Img 6
LinguaSwap Img 7
LinguaSwap Img 8
LinguaSwap Img 9
  • Multi-language translation support (25+ languages)
  • Voice input using Speech-to-Text
  • Text-to-Speech audio playback
  • Upload and translate .txt documents
  • Download translated text files
  • Save favorite translations
  • Translation history tracking
  • User statistics and analytics dashboard
  • Premium glassmorphism animated UI
  • Fully responsive design
  • Text Translation
    • User enters text manually
    • User selects source and target languages
    • Backend sends request to translation API
    • Translated text is displayed instantly
  • Voice Input (Speech-to-Text)
    • User clicks the microphone button
    • Application captures voice input
    • Spoken words are converted into text automatically
    • Text is translated into the selected language
  • Audio Playback (Text-to-Speech)
    • Users can listen to:
      • Original text
      • Translated text
    • Smart pause/resume system prevents audio interruptions
  • File Upload & Download
    • User uploads a .txt file
    • File content is extracted and translated
    • Translated result can be downloaded as a new text file
  • Translation History & Favorites
    • All translations are stored in MongoDB
    • Users can:
      • View translation history
      • Mark favorite translations
      • Access saved results anytime
  • Analytics Dashboard
    • Tracks:
      • Total translations
      • Total characters translated
      • Frequently used languages
    • Statistics are displayed visually on the dashboard
  • Security & Optimization
    • API rate limiting prevents spam requests
    • Backend securely handles translation requests
    • Responsive design ensures smooth performance across all devices
  • Frontend
    • React
    • Vite
    • Tailwind CSS
    • React Hot Toast
    • React Icons
  • Backend
    • Node.js
    • Express.js
  • Database
    • MongoDB
    • Mongoose
  • APIs & Web Technologies
    • Google Translate API
    • Web Speech API
    • FileReader API
    • Axios
    • Express Rate Limit
  • Helps users overcome language barriers
  • Useful for:
    • Students
    • Travelers
    • Professionals
    • Content creators
  • Improves accessibility with:
    • Voice input support
    • Audio playback functionality
  • Saves time through:
    • Document translation
    • Translation history management
  • Good project for learning:
    • MERN stack development
    • API integration
    • Speech recognition systems
    • File handling
    • Full-stack architecture
  • Excellent portfolio-level real-world application
  1. Environment Variables Setup:
    • backend/.env
      • PORT: 5000
      • MONGO_URI: mongodb_url_string
      • JWT_SECRET: your_jwt_secret_key_here (if needed)
    • frontend/.env
      • VITE_API_URL: backend_url
  2. Deployment Overview:
    • Render or Railway for backend hosting
    • Vercel or Netlify for frontend hosting
    • MongoDB Atlas for the database
  3. Backend Deployment:
    • Push your code to GitHub.
    • Go to Render.com or Railway.app.
    • Create a new Web Service and connect your GitHub repository.
    • Choose “backend/” as the root directory.
    • Add the following environment variables on Render:
    • PORT=10000
    • MONGO_URI=your MongoDB Atlas URI
    • JWT_SECRET=your JWT secret
    • Start command: npm start (Ensure your backend/package.json includes “start”: “node server.js”)
    • After deployment, note your backend URL, e.g. https://your-backend-name.onrender.com
  4. Frontend Deployment:
    • Go to Vercel.com or Netlify.com.
    • Create a new project and connect the GitHub repo.
    • Select the “frontend/” folder as root.
    • In environment variables, set:
    • VITE_API_URL=https://your-backend-domain.com/api (or REACT_APP_API_URL if using CRA)
    • Deploy.
  5. MongoDB Atlas Setup:
    • Go to https://cloud.mongodb.com
    • Create a free cluster.
    • Add your current IP address in Network Access.
    • Create a database user and password.
    • Copy the connection string and replace username, password, and database name in MONGO_URI in backend/.env

Note: This project is for educational purposes only. Not for commercial sale.