Skip to content

MatheusCampagnolo/Quote-Generator-and-Translator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Quote Generator and Translator

Description

This is a simple web application that allows users to generate and translate quotes into different languages. It utilizes the Quotable API to fetch random quotes and the MyMemory API for translation. The user can select a language for both generating quotes and translating them.

Functionality

The application works as follows:

  1. When the user selects a language and clicks the "Generate Quote" button, a random quote is fetched from the Quotable API in the selected language.

  2. The quote, along with its author is displayed to the user.

  3. If the user wants to translate the quote into another language, they can select the desired language and click the "Translate Quote" button.

  4. The quote is then translated using the MyMemory API, and the translated quote is displayed to the user.

Contribution

Contributions to the Quote Generator and Translator project are welcome! Here are some ways you can contribute:

  • Add More Languages: Update the language options in the dropdown menu to include additional language options.
  • Error Handling: Improve error handling in the translation process to provide better feedback to users in case of failures.
  • UI Enhancements: Enhance the user interface with additional features or improved design elements, such as adding animations or refining the layout.
  • Optimizations: Optimize the JavaScript code for better performance and maintainability, such as reducing redundancy or improving algorithms.

Testing

If you want to test, here is the url for it: https://matheuscampagnolo.github.io/Quote-Generator-and-Translator/

Credits

This project relies on the following APIs:

  • Quotable API: Provides random quotes in various languages.
  • MyMemory API: Offers translation services for different languages.

License

This project is licensed under the MIT License, which means you can use, modify, and distribute the code freely as long as you include the original license and acknowledge the project contributors.