crowdin / crowdin/crowdin-api-client-python
Add directoryIds and branchIds to Apply Pre-Translation
- 主要语言
- Python
- 星标
- 69
- 派生
- 39
- 平均合并
- 23 小时 35 分钟
- 30 天内合并 PR
- 8
描述
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)
贡献指南
调研方向
从 api.projects.pre-translations.post 以及相关的 Get Pre-Translation Status、Edit Pre-Translation 和 Get Pre-Translation Report 方法开始。将它们生成的 request、response 和方法签名定义与所引用的 API 文档进行比较;完成的标准是公开 directoryIds 和 branchIds,fileIds 为可选项,并且路径参数使用 jobIdentifier。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api
- Issue 类型
- 功能
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 活跃
- 描述清晰度
- 基本清楚
- 新手友好度
- 68/100