Skip to content

fix(translate): fix Trados translation-status detection bugs - #718

Draft
markdaugherty wants to merge 8 commits into
mainfrom
trados-connector-fixes
Draft

fix(translate): fix Trados translation-status detection bugs#718
markdaugherty wants to merge 8 commits into
mainfrom
trados-connector-fixes

Conversation

@markdaugherty

@markdaugherty markdaugherty commented Sep 3, 2026

Copy link
Copy Markdown
Member

Summary

  • Skip languages already complete/cancelled when polling status, so Trados's indefinitely-reported completed tasks no longer trigger a re-save or un-cancel
  • Detect a language as done once none of its tasks are left in a non-terminal status, instead of requiring a file-delivery task specifically — some project templates (e.g. TM-leverage-only workflows) never create that task type, leaving finished languages stuck at "in progress" in DA
  • Paginate the tasks fetch — it only read the first 100 tasks per project, silently undercounting completed work on larger projects
  • Verified against a real affected project: all 5 languages now resolve to translated

Full test suite (105 files) passes locally.

claude and others added 3 commits August 14, 2026 12:42
getStatusAll unconditionally overwrote lang.translation.status from
Trados's task list, with no guard against an already-'complete'
status. Trados keeps reporting completed file-delivery tasks
indefinitely, so every subsequent "Get status" click reverted a
'complete' lang back to 'translated', causing checkAndSaveLangs to
re-download and re-save it every time. Fixed by treating 'complete'
and 'cancelled' as terminal, mirroring the equivalent Smartling fix.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@aem-code-sync

aem-code-sync Bot commented Sep 3, 2026

Copy link
Copy Markdown

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch.
In case there are problems, just click the checkbox below to rerun the respective action.

  • Re-sync branch
Commits

Mark Daugherty and others added 3 commits September 4, 2026 11:20
- getLangStatus now considers a language done once none of its tasks are
  left in a non-terminal status, instead of requiring a 'file-delivery'
  task specifically - some project templates (e.g. TM-leverage-only
  workflows) never create that task type, leaving languages stuck at
  "in progress" in DA even though Trados has finished them
- Add pagination to the tasks fetch (fetchAllTasks) - it only returned
  the first 100 tasks per project, silently undercounting completed work
  on larger projects
- Verified against a real affected project (via a throwaway smoke test,
  not committed): all 5 languages now resolve to "translated"

Co-Authored-By: Claude <noreply@anthropic.com>
@markdaugherty markdaugherty changed the title fix(translate): stop Trados from re-saving already-completed languages fix(translate): fix Trados translation-status detection bugs Sep 4, 2026
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.

2 participants