# 🏪 The Multilingual Mandi
**AI that speaks your market's language**
A Next.js-powered multilingual marketplace application designed to bridge language barriers in Indian markets. Built with AWS AI services to provide real-time translation, price discovery, negotiation assistance, and more.
---
## 🌟 Features
### 1. 💰 Price Discovery
- Get fair market prices for 60+ commodities
- Real-time data from data.gov.in Agmarknet API
- AI-powered price estimates using AWS Bedrock
- Covers 70+ cities across India
- Shows both per kg price and total price for quantity
- Data source badges (Real Data, AI Estimate, or Fallback)
### 2. 🤝 Negotiation Assistant
- Dual mode: Vendor & Buyer perspectives
- AI-powered negotiation advice
- Smart counter-offer suggestions
- 10 negotiation tips for vendors
- 10 negotiation tips for buyers
- 5 quick phrases for each mode
- Voice output for all tips and phrases
- Fairness assessment with color-coded indicators
### 3. 🗣️ Speak with Vendor
- Real-time bidirectional translation
- Speech-to-text input (English & Hindi)
- Virtual keyboard for Indian languages
- Chat-style conversation interface
- Supports all 6 languages
### 4. 🧮 Smart Calculator
- Voice input: "10 kilos at 28 rupees"
- Automatic bulk discounts (2%, 5%, 10%)
- Shopping cart with multiple items
- Weight units: kg and grams
- Quick calculation buttons (1kg, 5kg, 10kg, 500g)
- Voice output for totals
### 5. 📸 Signboard Translator
- Camera-based OCR using AWS Rekognition
- Automatic language detection
- Side-by-side original and translated text
- Preserves prices, numbers, and formatting
- Voice output for translations
### 6. ⭐ Vendor Rating & Trust Score
- Rate vendors after deals (1-5 stars)
- Quick feedback: Fair Price, Good Quality, Honest Dealing
- Trust badges: 🔵 Top Rated, 🟢 Trusted Vendor, 🟡 New Vendor
- View vendor ratings before negotiating
- See vendor's preferred language and items sold
---
## ☁️ AWS Services Used
### 1. **AWS Translate**
- **Purpose**: Real …