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.
Név | Érték | Leírás |
---|---|---|
branch opcionális | string | Kapcsolódó verzió-ág neve (Verziók kezelése). |
Változók | ||
project-identifier | string | Projekt azonosítója. |
login | string | A felhasználóneve a Crowdinban. |
account-key | string | A fiókja API kulcsa. |
package | string | Nyelvkód vagy "all" az összes nyelv fordításának egy csomagban való letöltéséhez. |
#Összes fordítás letöltése egyetlen ZIP archívumként.
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}'));