A complete commercial translation platform with user authentication, Chinese-to-English translation services, Chrome extension integration, and payment processing.
- User registration and authentication
- Platform selection (Amazon, eBay)
- Chinese to English translation using Google Cloud Translation API
- Chrome extension for tab content capture
- Payment integration (Alipay/WeChat Pay)
- Billing system: first 10 translations free, then 1 RMB per use
- User balance management and transaction history
├── backend/ # FastAPI backend application
├── frontend/ # React frontend application
├── chrome-extension/ # Chrome extension for tab capture
└── README.md
cd backend
poetry install
poetry run fastapi dev app/main.pycd frontend
npm install
npm run dev- Open Chrome and navigate to
chrome://extensions/ - Enable "Developer mode"
- Click "Load unpacked" and select the
chrome-extensiondirectory
POST /api/auth/register- User registrationPOST /api/auth/login- User loginGET /api/user/profile- Get user profilePOST /api/translate- Translate textGET /api/translations/history- Get translation historyPOST /api/payment/topup- Top up user balanceGET /api/user/balance- Get user balance
- Backend: FastAPI, SQLite, JWT authentication
- Frontend: React, TypeScript, Tailwind CSS
- Translation: Google Cloud Translation API
- Payments: Alipay Global API
- Chrome Extension: Manifest V3