Polyglot AI is a code translator tool for programmers, built with ChatGPT’s advanced API. It allows you to convert your code from one programming language to another with just a few clicks.
Demo
.
Report Bug
.
Request Feature
- Supports multiple languages, such as Python, Java, JavaScript,and more.
- Uses ChatGPT’s natural language processing and code generation capabilities to produce high-quality translations.
- Provides a simple and intuitive user interface with syntax highlighting and code formatting.
To use Polyglot AI, you need to have Node.js and Vite installed on your machine. You also need an OpenAI API key to access ChatGPT’s service.
- Clone this repository or download the zip file.
git clone https://github.com/tawhidmonowar/polyglot_ai.git
- Navigate to the project folder and run npm install to install the dependencies.
- Create a .env file in the server directory and add your OpenAI API key as OPENAI_API_KEY= "your-key-here"
- Run npm run dev to start the development server.
To translate your code, follow these steps:
- Select the source and target languages from the dropdown menus.
- Paste or type your code in the left text area.
- Click the “Translate” button or press Ctrl+Enter to start the translation.
- Wait for a few seconds and see the translated code in the right text area.
- Copy or edit the translated code as you wish.
Contributions are welcome! If you find any bugs or issues, please submit them in the issue tracker. If you would like to contribute code, please fork the repository and create a pull request.
Polyglot AI is licensed under the MIT License. See LICENSE for more details.
This project was built as part of my Web Programming course at Metropolitan University. I would like to thank my instructor and classmates for their feedback and support. I would also like to thank OpenAI for providing ChatGPT’s API, which made this project possible.
- Tawhid Monowar - Computer science student
- Joytun siddika - Computer science student