Skip to main content
hl run now checks markdown translations passed in with --prefilled-entries before reusing them, and when a composed markdown file doesn’t match the source’s structure, it retranslates only the segments that break it instead of the whole file. hl check no longer reports <Tag /> inside a markdown code span as raw HTML. View the GitHub release · Full changelog

Fixes

  • Check reused markdown translations in hl run --prefilled-entries. Prefilled values for markdown and MDX sources go through the same checks as model output before they are staged. A value that fails is translated like any other entry, within the run’s limit, and the run warns with prefilled_entries_rejected (or prefilled_entries_rejected_by_locale) and a count. Other formats are reused as before, because checks such as ICU plural categories can reject valid human translations. See run.
  • Retry only the segments that break markdown structure in hl run. When a composed markdown file fails the structure check against its source, the CLI puts each translated segment back to its source text in turn and retranslates only the ones that clear a mismatch. Reused translations in the rest of the file are kept, and one broken segment costs one model call instead of one per segment. If no segment can be singled out, the whole file is retranslated as before.
  • Stop flagging markdown code spans as raw HTML in hl check and hl run (#3521). A translation saved as plain markdown, such as `<Button />` in a code span, is compared with the source token for token, so the tag no longer counts as HTML the translation added. See check.

Tests

  • Segment-level markdown parity retry, including the fallback to the whole file.
  • Prefilled markdown entries that fail validation are retranslated and counted; non-markdown entries are reused unchecked.
  • Code spans containing JSX-like tags pass markdown validation.

Maintenance

  • Bump Go dependencies, including the AWS SDK for Go v2 (aws-sdk-go-v2 to v1.48.2, config to v1.33.23, S3 to v1.117.0) and golang-jwt to v5.4.0 (#3556).