A modern web application for translating .po (Gettext) files with AI-powered suggestions.
- 📂 Drag & Drop - Simply drag your
.pofiles to start translating - 🤖 AI Suggestions - Get translation suggestions powered by OpenAI or Google Gemini
- 📊 Progress Tracking - Visual progress bar and statistics for your translations
- 🔍 Search & Filter - Quickly find entries by text or filter by status (pending/translated)
- 💾 Export - Download your translated
.pofile when ready - 🌙 Modern UI - Clean, glassmorphism-inspired interface
- Node.js 18+
- npm or yarn
# Clone the repository
git clone <repository-url>
cd po-translator
# Install dependencies
npm install
# Set up environment variables
cp .env.example .env
# Edit .env and add your API keysEdit the .env file with your API keys:
VITE_OPENAI_API_KEY=your_openai_api_key_here
VITE_GEMINI_API_KEY=your_gemini_api_key_hereYou can get your API keys from:
- OpenAI: https://platform.openai.com/api-keys
- Google Gemini: https://aistudio.google.com/apikey
# Start development server
npm run dev
# Build for production
npm run build- Upload a file - Drag and drop a
.pofile or click to browse - Select an entry - Click on any translation entry from the list
- Translate - Type your translation or click "Generate" for AI suggestions
- Apply suggestion - Click on any AI suggestion to apply it
- Export - Click "Export .po" to download your translated file
- React 19 + TypeScript
- Vite - Fast build tool
- OpenAI API - GPT-4o mini for translations
- Google Gemini API - Gemini 2.5 Flash for translations
MIT