Skip to content

Add FileTranslations API client (CON-1998)#147

Merged
PavelLoparev merged 3 commits into4.0.0-g7from
CON-1998-add-fts-api-client
Feb 3, 2026
Merged

Add FileTranslations API client (CON-1998)#147
PavelLoparev merged 3 commits into4.0.0-g7from
CON-1998-add-fts-api-client

Conversation

@PavelLoparev
Copy link
Contributor

@PavelLoparev PavelLoparev commented Feb 1, 2026

Summary

Implements the File Translations API client to support the Instant Translation feature for Drupal and WordPress connectors.

Changes

  • FileTranslationsApi - Account-level API client with 6 methods:
    • Upload file for translation
    • Initiate machine translation
    • Check translation progress
    • Download translated file (single locale)
    • Download all translations as ZIP
    • Cancel translation job
  • Parameter classes - TranslateFileParameters and UploadFileParameters
  • Unit tests - 8 tests covering all methods (all passing)
  • Functional tests - Integration tests for complete workflow
  • Example - Complete usage example demonstrating all features

Testing

✅ All unit tests passing (114 tests total)
✅ No regression in existing functionality
✅ Code follows SDK patterns and conventions

Test plan

  • Unit tests pass
  • Functional tests with real API credentials
  • Example script tested with real account

🤖 Generated with Claude Code

Implements account-level File Translations API with machine translation support:
- FileTranslationsApi with 6 methods (upload, translate, progress, download, cancel)
- TranslateFileParameters and UploadFileParameters classes
- Comprehensive unit tests (8 tests, all passing)
- Functional tests for integration testing
- Usage example with complete workflow

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@claude
Copy link

claude bot commented Feb 1, 2026

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@PavelLoparev PavelLoparev merged commit ebf56d4 into 4.0.0-g7 Feb 3, 2026
2 checks passed
@PavelLoparev PavelLoparev deleted the CON-1998-add-fts-api-client branch February 3, 2026 16:00
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.

3 participants