Please consider that API 2.0 is now the preferred version to be used. The old API will remain fully functional until the end of 2021.
Название | Значение | Описание |
---|---|---|
branch необязательный | строка | Имя ветви связанной версии ( Управления версиями) ). |
Variables | ||
project-identifier | строка | Идентификатор проекта. |
login | строка | Ваше имя пользователя в Crowdin. |
account-key | строка | API ключ вашего аккаунта. |
package | строка | Код языка или "all", чтобы скачать общий пакет с переводами на все языки. |
#Скачать все переводы в виде единого ZIP-архива.
wget https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?login={username}&account-key={account-key}
#Download French translations.
wget https://api.crowdin.com/api/project/{project-identifier}/download/fr.zip?login={username}&account-key={account-key}
#Download all translations from the master branch.
wget https://api.crowdin.com/api/project/{project-identifier}/download/all.zip?login={username}&account-key={account-key}&branch=master
<?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?login={username}&account-key={account-key}'));