Translify is a modern, high-performance translation application built with Next.js 16, designed to provide seamless and accurate translations between Bangla and English. Leveraging the power of advanced AI models via OpenRouter and Gemini, Translify understands context, nuances, and even "Banglish" (phonetic Bangla) to deliver superior translation results compared to traditional tools.
- Bi-Directional Translation: Instantly translate English to Bangla and Bangla to English.
- Banglish Support: Understands phonetic typing (e.g., "Ami bhalo achi" -> "I am fine").
- Multi-Model Intelligence: Switch between top-tier AI models like DeepSeek R1, Qwen 2.5, GPT OSS, and Gemini to find the best translation.
- Clean & Modern UI: Built with Tailwind CSS 4 for a sleek, responsive, and dark-mode ready interface.
- Smart Validation: Input character limits and validation to ensure optimal performance.
- Copy to Clipboard: One-click copy functionality for translated text.
- Framework: Next.js 16 (App Router)
- Language: TypeScript
- Styling: Tailwind CSS 4
- AI Integration:
- OpenRouter API
- Google Gemini API
- Icons: Heroicons / SVG
Follow these steps to set up the project locally.
- Node.js 18+ installed
- npm, pnpm, or yarn
-
Clone the repository
git clone https://github.com/soyeba3/next-translate.git cd next-translate -
Install dependencies
npm install # or pnpm install # or yarn install
-
Set up Environment Variables Create a
.env.localfile in the root directory and add your API keys:# Required for OpenRouter models (DeepSeek, Qwen, etc.) OPENROUTER_API_KEY=your_openrouter_api_key_here # Required for Gemini models GEMINI_API_KEY=your_gemini_api_key_here
-
Run the Development Server
npm run dev
Open http://localhost:3000 in your browser to see the app.
Translify currently supports the following AI models for translation:
- DeepSeek R1: Excellent for reasoning and nuance.
- Qwen 2.5 72B: High-performance open model.
- GPT OSS 20B: Balanced and fast.
- GLM 4.5 Air: Efficient lightweight model.
- Gemini 2.0 Flash / 1.5 Flash: Google's latest reliable models.
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the project
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.