You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Modified the runTranslationTask function to check if the language field is empty before proceeding with the translation. This addresses the issue of automatically translating PDFs without a parent item or language set.
Disclaimer: The concept of solution was created by AI and you should never copy paste this code before you check the correctness of generated code. Solution might not be complete, you should use this code as an inspiration only.
Latta AI seeks to solve problems in open source projects as part of its mission to support developers around the world. Learn more about our mission at https://latta.ai/ourmission . If you no longer want Latta AI to attempt solving issues on your repository, you can block this account.
Is there an existing issue for this?
Environment
1
Describe the feature request
从知网直接下载的PDF文件,没有父条目,直接打开,由于没有(不能)设置“语言”选项的原因,高亮后会自动翻译内容。请问,能否增加设置,不对“语言”选项为空的PDF文档,启用自动翻译功能。
经过测试,有父目录的PDF文件,如果语言设置为空,会启用自动翻译功能。
谢谢!
Describe the solution you'd like
1
Anything else?
No response
The text was updated successfully, but these errors were encountered: