Skip to content

feat: add directoryIds/branchIds to Apply Pre-Translation - #405

Merged
andrii-bodnar merged 1 commit into
crowdin:masterfrom
Selahattinozdmr:feat/pre-translation-directory-branch-ids
Sep 14, 2026
Merged

andrii-bodnar merged 1 commit into
crowdin:masterfrom
Selahattinozdmr:feat/pre-translation-directory-branch-ids

Conversation

@Selahattinozdmr

Copy link
Copy Markdown
Contributor

Description

Apply Pre-Translation now accepts optional directoryIds/branchIds to pre-translate whole directories and branches in file-based projects, and PreTranslationStatus.Attributes reflects them back on the response. fileIds remains present but is no longer the only way to scope a pre-translation job.

Also renamed the preTranslationId parameter to jobIdentifier on preTranslationStatus, editPreTranslation, and getPreTranslationReport, matching the API's renamed path parameter. This is a parameter-name-only change (same types/positions), so it doesn't affect compiled callers.

Added a TestClient mock test with request/response fixtures covering directoryIds/branchIds, verified to fail to compile without the model change and pass with it.

Fixes #402

Apply Pre-Translation now accepts directoryIds and branchIds to
pre-translate whole directories and branches in file-based projects,
and the pre-translation status attributes reflect them back. Also
renamed the preTranslationId parameter to jobIdentifier on
preTranslationStatus, editPreTranslation, and getPreTranslationReport
to match the API's renamed path parameter (not a wire change).

Fixes crowdin#402
@andrii-bodnar
andrii-bodnar merged commit f1a9049 into crowdin:master Sep 14, 2026
2 checks passed
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.

Add directoryIds and branchIds to Apply Pre-Translation

2 participants