Skip to content

Commit

Permalink
chore: skip code blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
fproldan committed Jul 18, 2024
1 parent 90d390a commit d2bb19c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions translate_docs.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)


Expand Down

0 comments on commit d2bb19c

Please sign in to comment.