The Translation Web App is a user-friendly web application that allows users to perform language translations, access a dictionary, and personalize their experience by customizing themes and language preferences. This application is designed to serve both guests and registered users.
- Translation: Translate text from one language to another with support for various languages using the Google Translate API.
- User Registration: Register an account to access additional features. Register with a unique username.
- User Login: Log in to your account with secure password hashing.
- Personalization: Customize the web app with theme selection and preferred language settings.
- Translation History: For registered users, view a history of your translations, including timestamps. For guest users, perform translations without saving a history.
- Dictionary: Explore word meanings with a dedicated dictionary feature.
-
Clone the repository or download the source code.
-
Install required Python libraries and dependencies:
pip install -r requirements.txt
- Update Google Translate library:
pip install googletrans==4.0.0rc1
- Install MySQL database driver:
pip install pymysql
- Update the Werkzeug library:
pip uninstall werkzeug
pip install werkzeug==2.3.0
- Change the database url on main.py:
app.config['SQLALCHEMY_DATABASE_URI'] = 'mysql+pymysql://username:password@host/database'
- Start the application:
python app.py
- Access the web app through a web browser.
-
As a Guest:
- Access the translation page to perform translations without a login.
- Use the dictionary page to explore word meanings.
-
As a Registered User:
- Register an account or log in with your existing credentials.
- Access the translation page to perform translations and save your history.
- Customize your web app by selecting themes and setting your preferred language.
Contributions to this project are welcome. Please follow these guidelines:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Make your changes and commit them.
- Create a pull request.
If you encounter any issues or have suggestions for improvements, please create a new issue on this repository.
This project is licensed under the MIT License. See the LICENSE file for more details.