class Language extends Package

Class Language

Methods

__construct(string $projectId, string $apiKey, Client $httpClient)

Constructor.

from Package
string
getProjectId()

Get the project ID.

from Package
string
getApiKey()

Get the API key.

from Package
Client
getHttpClient()

Get the HTTP client object.

from Package
string
getBasePath(string $action)

Get the base path for the command including an action.

from Package
ResponseInterface
getSupported()

Get supported languages list with Crowdin codes mapped to locale name and standardized codes.

ResponseInterface
getStatus(string $language)

Get the detailed translation progress for specified language.

Details

in Package at line 45
__construct(string $projectId, string $apiKey, Client $httpClient)

Constructor.

Parameters

string $projectId The project ID.
string $apiKey The API key
Client $httpClient The HTTP client object.

in Package at line 57
protected string getProjectId()

Get the project ID.

Return Value

string

in Package at line 67
protected string getApiKey()

Get the API key.

Return Value

string

in Package at line 77
protected Client getHttpClient()

Get the HTTP client object.

Return Value

Client

in Package at line 89
protected string getBasePath(string $action)

Get the base path for the command including an action.

Parameters

string $action The action to perform.

Return Value

string

at line 30
ResponseInterface getSupported()

Get supported languages list with Crowdin codes mapped to locale name and standardized codes.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/supported-languages

at line 46
ResponseInterface getStatus(string $language)

Get the detailed translation progress for specified language.

Parameters

string $language The language code.

Return Value

ResponseInterface

See also

https://crowdin.com/page/api/language-status