crowdin / crowdin/crowdin-api-client-python

Add directoryIds and branchIds to Apply Pre-Translation

オープン
#283 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
enhancement good first issue
主要言語
Python
スター
69
フォーク
39
平均マージ
23時間 35分
マージ済み PR(30日)
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)

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

Start with api.projects.pre-translations.post and the related Get Pre-Translation Status, Edit Pre-Translation, and Get Pre-Translation Report methods. Compare their generated request, response, and method-signature definitions with the referenced API documentation; done means directoryIds and branchIds are exposed, fileIds is optional, and the path parameter uses jobIdentifier.

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
api
issue の種類
機能追加
難易度
3/5
見積もり時間
1〜2日
活発さ
活発
明瞭さ
おおむね明確
初心者へのやさしさ
68/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。