A modern web-based language translation tool built with HTML, CSS, and JavaScript, powered by the Google Translate API.
This project provides a user-friendly interface for translating text between multiple languages. It leverages the Google Translate API to deliver accurate translations while maintaining a clean, intuitive user experience.
- Support for multiple languages
- Real-time translation
- Clean and responsive user interface
- Auto-language detection
- Character count display
- Mobile-friendly design
- HTML5
- CSS3
- JavaScript (ES6+)
- Google Translate API
- Clone the repository:
git clone https://github.com/amirallami-code/language-translator.git
cd language-translator
- Set up Google Translate API:
- Visit the Google Cloud Console
- Create a new project or select an existing one
- Enable the Cloud Translation API
- Create credentials (API key)
- Replace the API key in
script.js
- Open
index.html
in your web browser - Select the source language from the dropdown menu
- Enter the text you want to translate
- Select the target language
- The translation will appear automatically
Contributions are welcome! Please feel free to submit a Pull Request. For major changes, please open an issue first to discuss what you would like to change.
- 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.
Amirhossein Allami - amirallami.dev@gmail.com
Project Link: https://github.com/amirallami-code/language-translator
If you find this project helpful, please consider giving it a star ⭐