Skip to content

Preserve source-attested format names in translated tables - #880

Merged
zlareb1 merged 1 commit into
mainfrom
fix/i18n-format-name-context
Nov 18, 2026
Merged

zlareb1 merged 1 commit into
mainfrom
fix/i18n-format-name-context

Conversation

@zlareb1

@zlareb1 zlareb1 commented Nov 18, 2026

Copy link
Copy Markdown
Member

Changelog category (leave one):

  • Improvement

Changelog entry

Translation checks preserve the Protocol Buffers and FlatBuffers format names in the code-index language table while requiring ordinary descriptions to be translated.

Why

The source table names both formats beside their parser extensions. Retaining those proper names is required, but the untranslated-label check treats them as ordinary English and rejects an otherwise valid translated cell.

Scope and risk

The existing source-protection helper recognizes each exact name only in the documented source, with its matching inline-code extension in the source cell. Name spelling and order remain checked, and surrounding words still require translation. The change touches the helper and its focused tests.

Compatibility, rollout and rollback

  • Wire and operator steps: none.
  • No generated translation, stored data, migration, provider setting or execution policy changes.
  • Rollback restores the stricter label rejection without changing existing translation files.

Tests

  • The focused regression fails before the fix: three failures reproduce the missing protections and the translated-table rejection.
  • All 90 directly related context checks pass after the fix. Controls reject altered or missing names, an unrelated source, absent or mismatched extensions, and untranslated ordinary qualifiers.
  • Two existing immutable reply fragments pass the corrected invariant and table-shape checks in their captured source contexts. This validates fragment mechanics, not whole-page completion or semantic approval.
  • Ruff, formatting, diff and prose checks pass. Full suites run in GitHub CI and must pass before merge; no heavy local suite ran.

AI assistance in the code (leave one; writing this description with AI is fine):

  • AI-generated: Codex wrote the source declarations and tests; the publisher checked the complete diff, source attestations and validation evidence.

  • I can explain every line of this diff and how it interacts with the rest of Loom.

Checklist

  • Required GitHub CI passes on the current head.
  • No migration, schema, SDK, plugin, frontend or generated-file changes.
  • Source names are protected only with their documented parser extensions; ordinary prose remains translatable.
  • Commits are signed off.

The language table names Protocol Buffers and FlatBuffers beside their parser
extensions. Protect only those source-name spans when their matching inline
extension is present, while ordinary qualifiers still require translation.

Signed-off-by: zlareb1 <[email protected]>
@zlareb1
zlareb1 merged commit bc99c97 into main Nov 18, 2026
42 checks passed
@zlareb1 zlareb1 mentioned this pull request Nov 18, 2026
6 tasks done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant