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.
Nome | Valor | Descrição |
---|---|---|
branch opcional | string | O nome da ramificação da versão relacionada (Gestão de Versões). |
Variáveis | ||
project-identifier | string | Identificador do projeto. |
login | string | O teu nome de utilizador no Crowdin. |
account-key | string | A tua chave API de conta. |
pacote | string | O código de idioma ou "todos" para transferir um pacote com traduções para todos os idiomas. |
#Transfere todas as traduções num único arquivo 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}'));