You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description: "Uploads a file into the created project. [See the documentation](https://developer.crowdin.com/api/v2/#tag/source-files/operation/api.projects.files.post)",
8
-
version: "0.0.{{ts}}",
6
+
key: "crowdin-add-file",
7
+
name: "Add File to Project",
8
+
description: "Adds a file into the created project. [See the documentation](https://developer.crowdin.com/api/v2/#tag/source-files/operation/api.projects.files.post)",
9
+
version: "0.0.1",
9
10
type: "action",
10
11
props: {
11
12
crowdin,
@@ -24,7 +25,7 @@ export default {
24
25
name: {
25
26
type: "string",
26
27
label: "Name",
27
-
description: "The name of the file in Crowdin",
28
+
description: "The name of the file in Crowdin. **Note:** Can't contain `\\ / : * ? \" < > |` symbols. `ZIP` files are not allowed.",
28
29
},
29
30
branchId: {
30
31
propDefinition: [
@@ -47,25 +48,26 @@ export default {
47
48
title: {
48
49
type: "string",
49
50
label: "Title",
50
-
description: "The title of the file",
51
+
description: "Use to provide more details for translators. Title is available in UI only",
51
52
optional: true,
52
53
},
53
54
context: {
54
55
type: "string",
55
56
label: "Context",
56
-
description: "The context of the file",
57
+
description: "Use to provide context about whole file",
57
58
optional: true,
58
59
},
59
60
type: {
60
61
type: "string",
61
62
label: "File Type",
62
-
description: "The type of the file",
63
+
description: "The type of the file. **Note:** Use `docx` type to import each cell as a separate source string for XLSX file. Default is `auto`",
64
+
options: TYPE_OPTIONS,
63
65
optional: true,
64
66
},
65
67
parserVersion: {
66
68
type: "integer",
67
69
label: "Parser Version",
68
-
description: "The version of the parser",
70
+
description: "Using latest parser version by default. **Note:** Must be used together with `type`.",
description: "Creates a new project within Crowdin. [See the documentation](https://support.crowdin.com/developer/api/v2/#/projects-api/create-project)",
8
-
version: "0.0.{{ts}}",
14
+
version: "0.0.1",
9
15
type: "action",
10
16
props: {
11
17
crowdin,
@@ -23,8 +29,11 @@ export default {
23
29
targetLanguageIds: {
24
30
propDefinition: [
25
31
crowdin,
26
-
"targetLanguageIds",
32
+
"sourceLanguageId",
27
33
],
34
+
type: "string[]",
35
+
label: "Target Language IDs",
36
+
description: "Array of target language IDs",
28
37
optional: true,
29
38
},
30
39
identifier: {
@@ -33,33 +42,19 @@ export default {
33
42
description: "A custom identifier for the project",
34
43
optional: true,
35
44
},
36
-
type: {
37
-
type: "integer",
38
-
label: "Type",
39
-
description: "Defines the project type. To create a file-based project, use 0.",
40
-
optional: true,
41
-
},
42
45
visibility: {
43
46
type: "string",
44
47
label: "Visibility",
45
48
description: "Defines how users can join the project.",
49
+
options: VISIBILITY_OPTIONS,
46
50
optional: true,
47
-
options: [
48
-
"open",
49
-
"private",
50
-
],
51
-
default: "private",
52
51
},
53
52
languageAccessPolicy: {
54
53
type: "string",
55
54
label: "Language Access Policy",
56
55
description: "Defines access to project languages.",
0 commit comments