Skip to content

v0.2.0 - YAML Frontmatter & XLIFF Header Notes

Choose a tag to compare

@1StepMore 1StepMore released this 22 May 07:41
· 552 commits to main since this release

What's New

YAML Frontmatter (Markdown)

MD files now include translation metadata at the top:

---
source_lang: en
target_lang: zh
original_file: input.md
processor: "OL"
version: "0.2.0"
translated_at: 2026-05-22T15:00:00Z
---

XLIFF Header Notes

XLIFF files include metadata via header note:

<header>
  <note from="OL">Translated from en to zh by OL</note>
</header>

CLI Options

  • --frontmatter/--no-frontmatter for translate-md
  • --frontmatter/--no-frontmatter for translate-batch

Use --no-frontmatter to disable if needed.

Security

  • YAML injection prevention for filenames
  • XML escaping for XLIFF header notes