Translation
class Translation extends Package
Class Translation
Methods
Get the base path for the command including an action.
Upload existing translations to your Crowdin project.
Build ZIP archive with the latest translations. Please note that this method can be invoked only once per 30 minutes (there is no such restriction for organization plans). Also API call will be ignored if there were no changes in the project since previous export. You can see whether ZIP archive with latest translations was actually build by status attribute ("built" or "skipped") returned in response.
Download ZIP file with translations. You can choose the language of translation you need or download all of them at once.
Track overall translation and proofreading progresses of each target language.
Details
in Package at line 45
__construct(string $projectId, string $apiKey, Client $httpClient)
Constructor.
in Package at line 57
protected string
getProjectId()
Get the project ID.
in Package at line 67
protected string
getApiKey()
Get the API key.
in Package at line 77
protected Client
getHttpClient()
Get the HTTP client object.
in Package at line 89
protected string
getBasePath(string $action)
Get the base path for the command including an action.
at line 44
ResponseInterface
upload(Languagefile $languagefile, string $language, bool $importDuplicates = false, bool $importEqualSuggestions = false, bool $autoImproveImports = false)
Upload existing translations to your Crowdin project.
at line 93
ResponseInterface
export(string $branch = '')
Build ZIP archive with the latest translations. Please note that this method can be invoked only once per 30 minutes (there is no such restriction for organization plans). Also API call will be ignored if there were no changes in the project since previous export. You can see whether ZIP archive with latest translations was actually build by status attribute ("built" or "skipped") returned in response.
at line 121
ResponseInterface
download(string $package, string $toPath, string $branch = '')
Download ZIP file with translations. You can choose the language of translation you need or download all of them at once.
Note: If you would like to download the most recent translations you may want to use export API method before downloading.
at line 148
ResponseInterface
getStatus()
Track overall translation and proofreading progresses of each target language.
Default response format is XML.