diff --git a/src/translater/bing.cr b/src/translater/bing.cr index a94d329..40f8aec 100644 --- a/src/translater/bing.cr +++ b/src/translater/bing.cr @@ -19,6 +19,8 @@ class Translater if target_language.chinese? && language_selector_ele.text != "Chinese Simplified" # 如果输入内容是英文, 修改目标语言为中文 document_manager.execute_script(%{select = document.querySelector("#{language_selector}"); select.value = "zh-Hans"}) + elsif target_language.english? && language_selector_ele.text != "English" + document_manager.execute_script(%{select = document.querySelector("#{language_selector}"); select.value = "en"}) end input_ele.click