The Text Translation Bot is a straightforward yet powerful tool designed to translate text between various languages. Utilizing the OpenAI API, it provides accurate and efficient translations with ease.
For a detailed walkthrough of the Text Translation Bot, check out the following video: Watch on YouTube
- Multi-Language Support: Translate text across multiple languages.
- RESTful API: Easy-to-use endpoints for seamless integration with other applications.
- Real-Time Translation: Receive translations instantly for a smooth user experience.
- Error Handling: Robust mechanisms to manage invalid input and API errors effectively.
- Node.js: JavaScript runtime environment for building scalable server-side applications.
- TypeScript: Typed superset of JavaScript that enhances development with type safety.
- Express: Flexible web framework for Node.js to simplify API creation.
- OpenAI API: Utilizes advanced AI models for high-quality text translation.
- Nodemon: Automatically restarts the server during development for a streamlined workflow.
To get started with the Text Translation Bot, follow these steps:
-
Clone the Repository:
git clone https://github.com/namanag0502/translate-bot.git cd translate-bot
-
Install Dependencies:
pnpm install
-
Set Up Environment Variables: Create a
.env
file in the root directory and add your OpenAI API key:OPENAI_API_KEY=your_openai_api_key
-
Run the Application:
pnpm start
-
Access the API:
- Translate Text: Send a POST request to
http://localhost:4000/translate
withlanguage
andtext
parameters.
- Translate Text: Send a POST request to
-
Frontend:
cd frontend pnpm install pnpm run dev
This project is licensed under the MIT License - see the LICENSE file for details.
- OpenAI: For providing the AI models used in this project.
- Node.js & Express: For their powerful frameworks that made development easier.
Feel free to contribute to this project by opening issues or submitting pull requests!
This README file provides a clear overview of the project, its features, and how to get started, along with relevant technology details and resources.