Skip to content

Commit b93ce3b

Browse files
authored
feat(API): Extend exposed project settings (#1071)
1 parent 3e2ddc3 commit b93ce3b

4 files changed

Lines changed: 82 additions & 2 deletions

File tree

doc/compiled.json

Lines changed: 47 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,24 @@
20662066
"default_encoding": {
20672067
"type": "string",
20682068
"example": "UTF-8"
2069+
},
2070+
"cldr_version": {
2071+
"type": "string",
2072+
"example": "legacy"
2073+
},
2074+
"job_locking_enabled": {
2075+
"type": "boolean",
2076+
"example": false
2077+
},
2078+
"placeholder_styles": {
2079+
"type": "array",
2080+
"items": {
2081+
"type": "string"
2082+
},
2083+
"example": [
2084+
"angular",
2085+
"iOS"
2086+
]
20692087
}
20702088
},
20712089
"example": {
@@ -2084,7 +2102,13 @@
20842102
"autotranslate_mark_as_unverified": false,
20852103
"autotranslate_use_machine_translation": false,
20862104
"autotranslate_use_translation_memory": true,
2087-
"default_encoding": "UTF-8"
2105+
"default_encoding": "UTF-8",
2106+
"cldr_version": "legacy",
2107+
"job_locking_enabled": false,
2108+
"placeholder_styles": [
2109+
"angular",
2110+
"iOS"
2111+
]
20882112
}
20892113
}
20902114
]
@@ -15953,6 +15977,17 @@
1595315977
"description": "(Optional) Requires autotranslate_enabled to be true",
1595415978
"type": "boolean",
1595515979
"example": true
15980+
},
15981+
"placeholder_styles": {
15982+
"description": "(Optional) List of placeholder styles enabled for the project.",
15983+
"type": "array",
15984+
"items": {
15985+
"type": "string"
15986+
},
15987+
"example": [
15988+
"angular",
15989+
"iOS"
15990+
]
1595615991
}
1595715992
}
1595815993
}
@@ -16209,6 +16244,17 @@
1620916244
"UTF-16LE",
1621016245
"ISO-8859-1"
1621116246
]
16247+
},
16248+
"placeholder_styles": {
16249+
"description": "(Optional) List of placeholder styles enabled for the project.",
16250+
"type": "array",
16251+
"items": {
16252+
"type": "string"
16253+
},
16254+
"example": [
16255+
"angular",
16256+
"iOS"
16257+
]
1621216258
}
1621316259
}
1621416260
}

paths/projects/create.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,4 +145,12 @@ requestBody:
145145
description: "(Optional) Requires autotranslate_enabled to be true"
146146
type: boolean
147147
example: true
148+
placeholder_styles:
149+
description: "(Optional) List of placeholder styles enabled for the project."
150+
type: array
151+
items:
152+
type: string
153+
example:
154+
- "angular"
155+
- "iOS"
148156
x-cli-version: "2.6.3"

paths/projects/update.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,19 @@ requestBody:
144144
default_encoding:
145145
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."
146146
type: string
147-
example: "UTF-8"
147+
example: "UTF-8"
148148
enum:
149149
- "UTF-8"
150150
- "UTF-16"
151151
- "UTF-16BE"
152152
- "UTF-16LE"
153153
- "ISO-8859-1"
154+
placeholder_styles:
155+
description: "(Optional) List of placeholder styles enabled for the project."
156+
type: array
157+
items:
158+
type: string
159+
example:
160+
- "angular"
161+
- "iOS"
154162
x-cli-version: "2.6.3"

schemas/project_details.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ project_details:
5151
default_encoding:
5252
type: string
5353
example: "UTF-8"
54+
cldr_version:
55+
type: string
56+
example: "legacy"
57+
job_locking_enabled:
58+
type: boolean
59+
example: false
60+
placeholder_styles:
61+
type: array
62+
items:
63+
type: string
64+
example:
65+
- "angular"
66+
- "iOS"
5467

5568
example:
5669
slug: my-android-project
@@ -69,3 +82,8 @@ project_details:
6982
autotranslate_use_machine_translation: false
7083
autotranslate_use_translation_memory: true
7184
default_encoding: "UTF-8"
85+
cldr_version: "legacy"
86+
job_locking_enabled: false
87+
placeholder_styles:
88+
- "angular"
89+
- "iOS"

0 commit comments

Comments
 (0)