| Name | Value | Description |
|---|---|---|
| filesrequired | array | Files array that should be added to Crowdin project. Array keys should contain file names with path in Crowdin project. |
| titlesoptional | array | An arrays of strings that defines titles for uploaded files. Array keys should contain file names with path in Crowdin project. |
| export_patternsoptional | array | An arrays of strings that defines names of resulted files (translated files in resulted archive). Array keys should contain file names with path in Crowdin project. |
| keyrequired | string | Project API key. |
| typeoptional | string |
Acceptable values are:
|
| first_line_contains_headerrequired | string | Used when uploading CSV files via API. Defines whether first line should be imported or it contains columns headers. |
| schemeoptional | string |
Note: Used only when uploading CSV file to define data columns mapping. Acceptable value is the combination of the following constants:
|
| jsonoptional | string | May not contain value. Defines that response should be in JSON format. |
| jsonpoptional | string | Callback function name. Defines that response should be in JSONP format. |
| translate_contentXML files only optional |
bool | Defines whether to translate texts placed inside the tags. Acceptable values are: 0 or 1. Default is 1. |
| translate_attributesXML files only optional |
bool | Defines whether to translate tags attributes. Acceptable values are: 0 or 1. Default is 1. |
| translatable_elementsXML files only optional |
array | This is an array of strings, where each item is the XPaths to DOM element that should be imported. Sample path: /path/to/node or /path/to/attribute[@attr] Note! If defined, the parameters "translate_content" and "translate_attributes" are not taken into account while importing. |
| Variables | ||
| project-identifierrequired | string | Should contain the project identifier. |
<?xml version="1.0" encoding="ISO-8859-1"?>strings.xml 4 11
<?xml version="1.0" encoding="ISO-8859-1"?>3API key is not valid
curl \
-F "type=android" \
-F "files[/directory/arrays.xml]=@arrays.xml" \
-F "files[strings.xml]=@strings.xml" \
http://api.crowdin.net/api/project/{project-identifier}/add-file?key={project-key}