Skip to content

Commit 93fbdd7

Browse files
authored
feat(API): Add missing project flags to project details schema #SCD-141 (#993)
1 parent 87af83c commit 93fbdd7

File tree

2 files changed

+128
-1
lines changed

2 files changed

+128
-1
lines changed

doc/compiled.json

Lines changed: 71 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2005,11 +2005,81 @@
20052005
},
20062006
"shares_translation_memory": {
20072007
"type": "boolean"
2008+
},
2009+
"machine_translation_enabled": {
2010+
"type": "boolean",
2011+
"example": true
2012+
},
2013+
"zero_plural_form_enabled": {
2014+
"type": "boolean",
2015+
"example": true
2016+
},
2017+
"enable_all_data_type_translation_keys_for_translators": {
2018+
"type": "boolean",
2019+
"example": false
2020+
},
2021+
"enable_icu_message_format": {
2022+
"type": "boolean",
2023+
"example": false
2024+
},
2025+
"enable_branching": {
2026+
"type": "boolean",
2027+
"example": false
2028+
},
2029+
"protect_master_branch": {
2030+
"type": "boolean",
2031+
"example": false
2032+
},
2033+
"autotranslate_enabled": {
2034+
"type": "boolean",
2035+
"example": false
2036+
},
2037+
"autotranslate_check_new_translation_keys": {
2038+
"type": "boolean",
2039+
"example": false
2040+
},
2041+
"autotranslate_check_new_uploads": {
2042+
"type": "boolean",
2043+
"example": false
2044+
},
2045+
"autotranslate_check_new_locales": {
2046+
"type": "boolean",
2047+
"example": false
2048+
},
2049+
"autotranslate_mark_as_unverified": {
2050+
"type": "boolean",
2051+
"example": false
2052+
},
2053+
"autotranslate_use_machine_translation": {
2054+
"type": "boolean",
2055+
"example": false
2056+
},
2057+
"autotranslate_use_translation_memory": {
2058+
"type": "boolean",
2059+
"example": true
2060+
},
2061+
"default_encoding": {
2062+
"type": "string",
2063+
"example": "UTF-8"
20082064
}
20092065
},
20102066
"example": {
20112067
"slug": "my-android-project",
2012-
"shares_translation_memory": true
2068+
"shares_translation_memory": true,
2069+
"machine_translation_enabled": true,
2070+
"zero_plural_form_enabled": true,
2071+
"enable_all_data_type_translation_keys_for_translators": false,
2072+
"enable_icu_message_format": false,
2073+
"enable_branching": false,
2074+
"protect_master_branch": false,
2075+
"autotranslate_enabled": false,
2076+
"autotranslate_check_new_translation_keys": false,
2077+
"autotranslate_check_new_uploads": false,
2078+
"autotranslate_check_new_locales": false,
2079+
"autotranslate_mark_as_unverified": false,
2080+
"autotranslate_use_machine_translation": false,
2081+
"autotranslate_use_translation_memory": true,
2082+
"default_encoding": "UTF-8"
20132083
}
20142084
}
20152085
]

schemas/project_details.yaml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,63 @@ project_details:
99
type: string
1010
shares_translation_memory:
1111
type: boolean
12+
machine_translation_enabled:
13+
type: boolean
14+
example: true
15+
zero_plural_form_enabled:
16+
type: boolean
17+
example: true
18+
enable_all_data_type_translation_keys_for_translators:
19+
type: boolean
20+
example: false
21+
enable_icu_message_format:
22+
type: boolean
23+
example: false
24+
enable_branching:
25+
type: boolean
26+
example: false
27+
protect_master_branch:
28+
type: boolean
29+
example: false
30+
autotranslate_enabled:
31+
type: boolean
32+
example: false
33+
autotranslate_check_new_translation_keys:
34+
type: boolean
35+
example: false
36+
autotranslate_check_new_uploads:
37+
type: boolean
38+
example: false
39+
autotranslate_check_new_locales:
40+
type: boolean
41+
example: false
42+
autotranslate_mark_as_unverified:
43+
type: boolean
44+
example: false
45+
autotranslate_use_machine_translation:
46+
type: boolean
47+
example: false
48+
autotranslate_use_translation_memory:
49+
type: boolean
50+
example: true
51+
default_encoding:
52+
type: string
53+
example: "UTF-8"
54+
1255
example:
1356
slug: my-android-project
1457
shares_translation_memory: true
58+
machine_translation_enabled: true
59+
zero_plural_form_enabled: true
60+
enable_all_data_type_translation_keys_for_translators: false
61+
enable_icu_message_format: false
62+
enable_branching: false
63+
protect_master_branch: false
64+
autotranslate_enabled: false
65+
autotranslate_check_new_translation_keys: false
66+
autotranslate_check_new_uploads: false
67+
autotranslate_check_new_locales: false
68+
autotranslate_mark_as_unverified: false
69+
autotranslate_use_machine_translation: false
70+
autotranslate_use_translation_memory: true
71+
default_encoding: "UTF-8"

0 commit comments

Comments
 (0)