bazarr/libs/deep_translator/engines.py

7 lines
191 B
Python

from deep_translator.base import BaseTranslator
__engines__ = {
translator.__name__.replace("Translator", "").lower(): translator
for translator in BaseTranslator.__subclasses__()
}