(file_path, lang, chinese_texts, file_lock)
| 84 | |
| 85 | |
| 86 | def translate_task(file_path, lang, chinese_texts, file_lock): |
| 87 | if lang == "zh-CN": # 翻译你麻痹 |
| 88 | return |
| 89 | print(f"\033[32m开始翻译语言=>[{lang}]\033[0m") |
| 90 | translation_output = translate_and_collect(chinese_texts, lang) |
| 91 | if translation_output != "": |
| 92 | insert_into_meta(file_path, translation_output, file_lock) |
| 93 | |
| 94 | |
| 95 | def translate_localized(file_path, target_langs): |
nothing calls this directly
no test coverage detected