A simple language translation web application built with Django, Tailwind CSS, and Python's translate library. This project allows users to enter text, select a target language, and get translations. It includes a user-friendly interface with modern design elements.
- Text input and language selection
- Translation functionality using the
translatelibrary - Responsive design with Tailwind CSS
- User feedback messages that appear during translation
- Django: Web framework for the backend
- Tailwind CSS: Utility-first CSS framework for styling
- Python Translate Library: For handling translations
Follow these steps to set up the project locally:
-
Clone the Repository:
https://github.com/ProKelly/Language-Translator.git cd Language-Translator -
Set Up a Virtual Environment:
python -m venv venv source venv/bin/activate # On Windows use `venv\Scripts\activate`
-
Install Dependencies:
pip install -r requirements.txt
-
Install Tailwind CSS:
-
Run Migrations:
python manage.py migrate
-
Run the Development Server:
python manage.py runserver
-
Access the Application:
Open your web browser and go to
http://127.0.0.1:8000/to start using the application.
- Enter Text: In the input field, type the text you want to translate.
- Select Language: Choose the target language from the dropdown menu.
- Click Translate: Submit the form to see the translated text.
- View Translation: The translated text will be displayed below the form.
main/: Contains the main Django application code.migrations/: Database migrations.templates/: HTML templates.views.py: Logic for handling requests and responses.
theme: contains tailwind cssrequirements.txt: List of Python dependencies.manage.py: Django's command-line utility.
Contributions are welcome! If you have suggestions or improvements, please follow these steps:
-
Fork the Repository: Click on the "Fork" button at the top right of this page.
-
Create a Branch:
git checkout -b feature/your-feature
-
Make Your Changes.
-
Commit Your Changes:
git add . git commit -m "Add your message here"
-
Push to Your Fork:
git push origin feature/your-feature
-
Create a Pull Request: Go to the original repository and click on "New Pull Request."
For any questions or feedback, you can reach me at Prokelly.me.
