From ace9320b643a7ec08a94f6479c567bde0f3519c0 Mon Sep 17 00:00:00 2001 From: bikmazefe Date: Mon, 30 Mar 2026 16:59:54 +0300 Subject: [PATCH] feat(API): Extend exposed project settings --- doc/compiled.json | 48 +++++++++++++++++++++++++++++++++++- paths/projects/create.yaml | 8 ++++++ paths/projects/update.yaml | 10 +++++++- schemas/project_details.yaml | 18 ++++++++++++++ 4 files changed, 82 insertions(+), 2 deletions(-) diff --git a/doc/compiled.json b/doc/compiled.json index 2a274c2ca..5c9881c68 100644 --- a/doc/compiled.json +++ b/doc/compiled.json @@ -2066,6 +2066,24 @@ "default_encoding": { "type": "string", "example": "UTF-8" + }, + "cldr_version": { + "type": "string", + "example": "legacy" + }, + "job_locking_enabled": { + "type": "boolean", + "example": false + }, + "placeholder_styles": { + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "angular", + "iOS" + ] } }, "example": { @@ -2084,7 +2102,13 @@ "autotranslate_mark_as_unverified": false, "autotranslate_use_machine_translation": false, "autotranslate_use_translation_memory": true, - "default_encoding": "UTF-8" + "default_encoding": "UTF-8", + "cldr_version": "legacy", + "job_locking_enabled": false, + "placeholder_styles": [ + "angular", + "iOS" + ] } } ] @@ -15953,6 +15977,17 @@ "description": "(Optional) Requires autotranslate_enabled to be true", "type": "boolean", "example": true + }, + "placeholder_styles": { + "description": "(Optional) List of placeholder styles enabled for the project.", + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "angular", + "iOS" + ] } } } @@ -16209,6 +16244,17 @@ "UTF-16LE", "ISO-8859-1" ] + }, + "placeholder_styles": { + "description": "(Optional) List of placeholder styles enabled for the project.", + "type": "array", + "items": { + "type": "string" + }, + "example": [ + "angular", + "iOS" + ] } } } diff --git a/paths/projects/create.yaml b/paths/projects/create.yaml index c481390c0..b8f5a1107 100644 --- a/paths/projects/create.yaml +++ b/paths/projects/create.yaml @@ -145,4 +145,12 @@ requestBody: description: "(Optional) Requires autotranslate_enabled to be true" type: boolean example: true + placeholder_styles: + description: "(Optional) List of placeholder styles enabled for the project." + type: array + items: + type: string + example: + - "angular" + - "iOS" x-cli-version: "2.6.3" diff --git a/paths/projects/update.yaml b/paths/projects/update.yaml index 0b0c469f1..144a9a298 100644 --- a/paths/projects/update.yaml +++ b/paths/projects/update.yaml @@ -144,11 +144,19 @@ requestBody: default_encoding: description: "(Optional) Sets the default encoding for Uploads. If you leave it empty, we will try to guess it automatically for you when you Upload a file. You can still override this value by setting the [`file_encoding`](/en/api/strings/uploads/upload-a-new-file) parameter for Uploads." type: string - example: "UTF-8" + example: "UTF-8" enum: - "UTF-8" - "UTF-16" - "UTF-16BE" - "UTF-16LE" - "ISO-8859-1" + placeholder_styles: + description: "(Optional) List of placeholder styles enabled for the project." + type: array + items: + type: string + example: + - "angular" + - "iOS" x-cli-version: "2.6.3" diff --git a/schemas/project_details.yaml b/schemas/project_details.yaml index 16e4b4094..ef5607a21 100644 --- a/schemas/project_details.yaml +++ b/schemas/project_details.yaml @@ -51,6 +51,19 @@ project_details: default_encoding: type: string example: "UTF-8" + cldr_version: + type: string + example: "legacy" + job_locking_enabled: + type: boolean + example: false + placeholder_styles: + type: array + items: + type: string + example: + - "angular" + - "iOS" example: slug: my-android-project @@ -69,3 +82,8 @@ project_details: autotranslate_use_machine_translation: false autotranslate_use_translation_memory: true default_encoding: "UTF-8" + cldr_version: "legacy" + job_locking_enabled: false + placeholder_styles: + - "angular" + - "iOS"