Update ADC_function.py

使得程序从配置文件中读取用户配置的翻译引擎
This commit is contained in:
zzlwd
2023-06-16 18:02:07 +08:00
committed by GitHub
parent 449174f0a0
commit 264c208697

View File

@@ -302,7 +302,7 @@ def get_html_by_scraper(url: str = None, cookies: dict = None, ua: str = None, r
def translate(
src: str,
target_language: str = config.getInstance().get_target_language(),
engine: str = "google-free",
engine: str = config.getInstance().get_translate_engine(),
app_id: str = "",
key: str = "",
delay: int = 0,