Скачать переводы

Download ZIP file with translations. You can choose the language of translation you need or download all of them at once.
Note: If you would like to download the most recent translations you may want to use export API method before downloading.

Запрос

GET https://api.crowdin.com/api/project/{идентификатор-проекта}/download/{пакет}.zip?key={ключ-проекта}

Параметры

Название Значение Описание
branch необязательный строка The name of related version branch (Versions Management).
Переменные
project-identifier обязательный строка Должен содержать идентификатор проекта.
project-key обязательный строка API-ключ проекта.
package required строка Language code or "all" to download a bundle with translations to all languages.

Примеры

#Download all translations as a single ZIP archive.
wget https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?key={project-key}

#Download French translations.
wget https://api.crowdin.com/api/project/{project-identifier}/download/fr.zip?key={project-key}
<?php
ini_set('auto_detect_line_endings', 1);
ini_set('default_socket_timeout', 5); // socket timeout, just in case

file_put_contents('translations.zip', file_get_contents('https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?key={project-key}'));