The application is a simple translator based on Django that allows users to input text in Italian and get a translation in English. The application uses Google Translate to perform the translation and displays the result on a separate page.
- Django: Web framework used to build the application.
- Googletrans: Python library to interface with the Google Translate API.
- Spacy: Natural language processing library used to load Italian and English language models.
- HTML/CSS: Used to build the user interface.
result.html
: HTML page that displays the translation result.settings.py
: Django configuration file that contains the project settings.translate.html
: HTML page that contains the form for inputting the text to be translated.translation_project/urls.py
: URL configuration file for the main project.translator/urls.py
: URL configuration file for thetranslator
application.views.py
: File that contains the views for thetranslator
application.
- Text Translation: Users can input text in Italian and get a translation in English.
- Simple User Interface: The application offers a simple and intuitive user interface for inputting text and viewing the translation result.
- The user inputs text in Italian on the
translate.html
page. - The text is sent to the Django server via a POST request.
- The
translate_text
view inviews.py
uses Google Translate to translate the text from Italian to English. - The translation result is displayed on the
result.html
page.
- Python 3.x
- Django 5.1
- Googletrans
- Spacy
- Clone the project repository. git clone https://github.com/Mike014/Simple-Translator.git
- Install the required dependencies. cd Simple-Translator
- Run the database migrations. pip install -r requirements.txt
- Start the Django development server. python manage.py runserver
This project provides a simple base for a translation application using Django and Google Translate. It can be extended with additional features such as support for more languages or integration with other translation services.