From d2bb19cdec55e79c37a73004909a132d654d816f Mon Sep 17 00:00:00 2001 From: fproldan Date: Thu, 18 Jul 2024 14:30:15 +0000 Subject: [PATCH] chore: skip code blocks --- translate_docs.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/translate_docs.py b/translate_docs.py index 8f58ee8..1e1ca43 100644 --- a/translate_docs.py +++ b/translate_docs.py @@ -52,7 +52,9 @@ def translate_file(source_file, target_file, target_language, translate_client): text_without_code, target_language=target_language, format_="text" ) final_text = reintegrate_code_blocks(translation["translatedText"], code_blocks) + print(final_text) with open(target_file, "w", encoding="utf-8") as f: + print(f) f.write(final_text)