Name | Value | Description |
---|---|---|
include_assigned optional | bool | Defines whether the assigned TMs should be included in downloaded TMX file. Acceptable values are: 0, 1. Default is 1. |
source_language optional | string | Defines a source language for language pair. Сrowdin language code should be used. |
target_language optional | string | Defines a target language for language pair. Сrowdin language code should be used. |
Variables | ||
project-identifier | string | Project identifier. |
project-key | string | Project API key. Either the project-key or combination of login and account-key are required. |
login | string | Your username in Crowdin. Either the project-key or combination of login and account-key are required. |
account-key | string | Your account API key. Either the project-key or combination of login and account-key are required. |
wget -O project.tmx "https://api.crowdin.com/api/project/{project-identifier}/download-tm?key={project-key}"
<?php
ini_set('auto_detect_line_endings', 1); // allows file support for macintosh
ini_set('default_socket_timeout', 5); // socket timeout, just in case
file_put_contents('project.tmx', file_get_contents('https://api.crowdin.com/api/project/{project-identifier}/download-tm?key={project-key}'));