Translate Full Markdown Documents with translate.google.cn

A script-based approach for translating long Markdown files while preserving front matter and syntax.

Updated version is available in the next article

Why not translate directly in the web UI

  • Long markdown must be split manually.
  • Front matter keys can be translated incorrectly.
  • Markdown syntax can interfere with translation quality.

Script strategy

  1. Protect non-translatable syntax/segments.
  2. Split long content into manageable chunks.
  3. Translate chunk by chunk.
  4. Reassemble and restore protected segments.
记录并分享
Built with Hugo
Theme Stack designed by Jimmy