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.
Name | Value | Description |
---|---|---|
branch optional | string | The name of related version branch (Versions Management). |
Variables | ||
project-identifier | string | Project identifier. |
login | string | Your username in Crowdin. |
account-key | string | Your account API key. |
package | string | 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?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}'));