Validate the translation services #15
Labels
enhancement
New feature or request
help wanted
Extra attention is needed
High Priority
Urgent requirement
Milestone
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 developmentProduction level APIs are
Development level APIs are
In the
translate
function, we can pass in translation service in a string as followstranslate(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:
.config
filepython 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.The text was updated successfully, but these errors were encountered: