maeriil / Aoriil

Image translator designed for manga but can be extended to any websites in general.
MIT License
0 stars 0 forks source link

Validate the translation services #15

Open maeriil opened 1 year ago

maeriil commented 1 year ago

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

Development level APIs are

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: