crowdin / crowdin/crowdin-api-client-python
Add directoryIds and branchIds to Apply Pre-Translation
- Vorherrschende Sprache
- Python
- Sterne
- 69
- Forks
- 39
- Ø Merge
- 23 Std. 35 Min.
- Gemergte PRs (30 T.)
- 8
Beschreibung
The **Apply Pre-Translation** method (`POST /projects/{projectId}/pre-translations`, `api.projects.pre-translations.post`) now supports pre-translating whole directories and branches in file-based projects, in both Crowdin and Crowdin Enterprise:
- New optional request fields `directoryIds` (array of integers) and `branchIds` (array of integers) — all nested files are included.
- `fileIds` is no longer required — it must be provided only when neither `directoryIds` nor `branchIds` is set.
- The pre-translation status/response attributes now also include `directoryIds` and `branchIds`.
Additionally, the path parameter of **Get Pre-Translation Status**, **Edit Pre-Translation**, and **Get Pre-Translation Report** was renamed from `preTranslationId` to `jobIdentifier` (`/projects/{projectId}/pre-translations/{jobIdentifier}`). This is not a wire change, but generated clients and method signatures may reflect the new name.
Client libraries should make `fileIds` optional and expose the new `directoryIds`/`branchIds` request and response fields.
**References:**
- [Apply Pre-Translation](https://support.crowdin.com/developer/api/v2/#operation/api.projects.pre-translations.post)
- [Get Pre-Translation Status](https://support.crowdin.com/developer/api/v2/#operation/api.projects.pre-translations.get)
- Crowdin Enterprise: [Apply Pre-Translation](https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.projects.pre-translations.post)
Beitragsleitfaden
Rechercherichtung
Beginne mit api.projects.pre-translations.post und den zugehörigen Methoden Get Pre-Translation Status, Edit Pre-Translation und Get Pre-Translation Report. Vergleiche deren generierte Definitionen für Request, Response und Methodensignatur mit der referenzierten API-Dokumentation; abgeschlossen ist die Aufgabe, wenn directoryIds und branchIds verfügbar sind, fileIds optional ist und der Pfadparameter jobIdentifier verwendet.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python
- Bereich
- api
- Issue-Typ
- Feature
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Aktiv
- Klarheit
- Größtenteils klar
- Anfängerfreundlichkeit
- 68/100