Export File

This method exports single translated files from Crowdin. Additionally, it can be applied to export XLIFF files for offline localization.

Request

GET https://api.crowdin.com/api/project/{project-identifier}/export-file?key={project-key}

Parameters

Name Value Description
keyrequired string Project API key
project-identifierrequired string Should contain the project identifier.
filerequired string This parameter specifies a path to the file that should be exported from the project.
languagerequired string Crowdin language code.
formatoptional string Specify xliff to export file in the XLIFF file format.
export_translated_onlyoptional bool Defines whether only translated strings will be exported to the final file. We do not recommend to set this option if you have text (*.html, *.txt, *.docx etc.) documents in your project since it may damage resulted files. Acceptable values are: 1 or 0.
export_approved_onlyoptional bool If set to 1 only approved translations will be exported in resulted ZIP file. Acceptable values are: 1 or 0.

Examples

#Download file in the same file format as source
wget -O de.xml "https://api.crowdin.com/api/project/{project-identifier}/export-file?file=en.xml&language=de&key={project-key}

#Download file for offline translation in XLIFF file format
wget -O de.xliff "https://api.crowdin.com/api/project/{project-identifier}/export-file?file=en.html&format=xliff&language=de&key={project-key}"