Skip to content

Mark machine translations as "Needs Review" - #783

Open
nkmkj wants to merge 4 commits into
dotnet:masterfrom
nkmkj:feature/762-mark-machine-translations-needs-review
Open

nkmkj wants to merge 4 commits into
dotnet:masterfrom
nkmkj:feature/762-mark-machine-translations-needs-review

Conversation

@nkmkj

@nkmkj nkmkj commented Nov 22, 2026

Copy link
Copy Markdown

Fixes #762

Adds a new opt-in setting Mark machine translations as "Needs Review" (default off,
fully backward compatible with the existing prefix workflow).

When enabled, applying a machine translation sets the entry's TranslationState to
NeedsReview, persisted as an @State(NeedsReview) token in the RESX entry comment
(reusing the existing marker infrastructure in ResourceTableEntryExtensions). Editing a
value manually clears the marker again, so only untouched machine translations remain
marked for review.

  • New setting in configuration, interface, scripting host and the settings UI
  • TranslationItem.Apply writes the value and sets NeedsReview in one step
  • Manual edits clear the review marker through the value-write path
  • Regression tests: translate two entries, edit one, assert only the untouched entry stays
  • New setting in configuration, interface, scripting host and the settings UI
  • TranslationItem.Apply writes the value and sets NeedsReview in one step
  • Manual edits clear the review marker through the value-write path
  • Regression tests: translate two entries, edit one, assert only the untouched entry stays
    NeedsReview; plus a test that the off state writes no state

Enabling the XLIFF ↔ RESX translation-state sync (currently commented out as TODO) could
be a follow-up so the review state also flows into exported XLIFF files.

@nkmkj

nkmkj commented Nov 22, 2026

Copy link
Copy Markdown
Author

@dotnet-policy-service agree

This branch has not been deployed

No deployments
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.

Mark machine translations as "Needs Review"

1 participant