crowdin / crowdin/crowdin-api-client-python

Add support for updateOption parameter in string editing endpoints

未关闭
#253 1 条评论 0 个 reaction 已指派 1 人 已被 @innomaxx 认领 在 GitHub 查看
enhancement good first issue
主要语言
Python
星标
69
派生
39
平均合并
23 小时 35 分钟
30 天内合并 PR
8

描述

The Crowdin API adds a new optional `updateOption` query parameter to the source string editing endpoints: **Edit String** (`PATCH /projects/{projectId}/strings/{stringId}`) and **String Batch Operations** (`PATCH /projects/{projectId}/strings`).

The parameter defines whether existing translations and approvals are kept when a string is updated, and is applied only when `text` or `identifier` is changed. Allowed values:

- `keep_translations_and_approvals` (default)
- `keep_translations`
- `clear_translations_and_approvals`

API client libraries should be updated to expose `updateOption` on these endpoints so consumers can control translation/approval retention when editing strings via the SDK.

**References:**
- [Edit String](https://support.crowdin.com/developer/api/v2/#operation/api.projects.strings.patch)
- [String Batch Operations](https://support.crowdin.com/developer/api/v2/#operation/api.projects.strings.batchPatch)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。