Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Validate the translation services #15

Open
3 tasks
maeriil opened this issue Oct 15, 2023 · 0 comments
Open
3 tasks

Validate the translation services #15

maeriil opened this issue Oct 15, 2023 · 0 comments
Labels
enhancement New feature or request help wanted Extra attention is needed High Priority Urgent requirement

Comments

@maeriil
Copy link
Owner

maeriil commented Oct 15, 2023

In the imagetranslation.py, we can pass which translation API we want to use. Currently our program should support 2 APIs for production level and 1 APIs for development

Production level APIs are

  • Google Translation API
  • Amazon Translate API

Development level APIs are

  • Python Unofficial Google Translate

In the translate function, we can pass in translation service in a string as follows
translate(image, translation_service=""

The default is always the python-googletrans as it doesn't need credentials.

When the translation service is not python google translate, we need to look for proper API credentials in order for it to work properly.

Therefore we need to do the following:

  • Validate if the passed translation service is supported
  • If the passed translation service is one of Production level APIs, we need to look for proper credentials in some sort of .config file
  • Fallback should be python google translate if credentials was not found, or if passed translation service is not supported. However, it should warn the user that the fallback was used and why it happened.
@maeriil maeriil added enhancement New feature or request help wanted Extra attention is needed High Priority Urgent requirement labels Oct 15, 2023
@maeriil maeriil added this to the Backend API Release milestone Oct 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed High Priority Urgent requirement
Projects
None yet
Development

No branches or pull requests

1 participant