This is a translation application built with OpenAI's API, TypeScript, and React. It allows users to translate text from one language to another in real-time.
- Translate text from one language to another
- Detect language automatically
To get started with this project, follow these steps:
- Clone the repository to your local machine
- Install dependencies using
npm install
- Create a
.env
file in the root directory with your OpenAI API key (VITE_OPENAI_API_KEY='YOUR API KEY'
) - Start the development server using
npm start
- Open http://localhost:3000 in your web browser to view the application
To translate text, type or paste the text you want to translate into the input field. The application will automatically detect the language and translate it into the selected language. To change the language, click on the language selector and choose the desired language.
This application was built using the following technologies:
This project was inspired by the tutorial series by midudev on YouTube.
Mit License.