Skip to content

Commit 91be019

Browse files
authored
feat(API): Add source_locale_id to job templates create/update (#1099)
1 parent 04a7ef1 commit 91be019

3 files changed

Lines changed: 18 additions & 0 deletions

File tree

doc/compiled.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11955,6 +11955,11 @@
1195511955
"description": "Automatically translate the job using machine translation.",
1195611956
"type": "boolean",
1195711957
"example": true
11958+
},
11959+
"source_locale_id": {
11960+
"description": "The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.",
11961+
"type": "string",
11962+
"example": "abcd1234cdef1234abcd1234cdef1234"
1195811963
}
1195911964
},
1196011965
"required": [
@@ -12126,6 +12131,11 @@
1212612131
"description": "Automatically translate the job using machine translation.",
1212712132
"type": "boolean",
1212812133
"example": true
12134+
},
12135+
"source_locale_id": {
12136+
"description": "The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.",
12137+
"type": "string",
12138+
"example": "abcd1234cdef1234abcd1234cdef1234"
1212912139
}
1213012140
},
1213112141
"required": [

paths/job_templates/create.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ requestBody:
6565
description: Automatically translate the job using machine translation.
6666
type: boolean
6767
example: true
68+
source_locale_id:
69+
description: The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
70+
type: string
71+
example: abcd1234cdef1234abcd1234cdef1234
6872
required:
6973
- name
7074
x-cli-version: '2.5'

paths/job_templates/update.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,10 @@ requestBody:
6767
description: Automatically translate the job using machine translation.
6868
type: boolean
6969
example: true
70+
source_locale_id:
71+
description: The API id of the source language. This locale will be set as source locale for the job template. If not provided, the project default locale will be used.
72+
type: string
73+
example: abcd1234cdef1234abcd1234cdef1234
7074
required:
7175
- name
7276
x-cli-version: '2.5'

0 commit comments

Comments
 (0)