File
class File extends Package
Class File
Methods
Get the base path for the command including an action.
Add new file to Crowdin project.
Upload latest version of your localization file to Crowdin.
Delete file from Crowdin project. All the translations will be lost without ability to restore them.
This method exports single translated files from Crowdin.
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 37
ResponseInterface
add(Languagefile $languagefile, string $type = '', string $branch = '')
Add new file to Crowdin project.
at line 74
ResponseInterface
update(Languagefile $languagefile, string $branch = '')
Upload latest version of your localization file to Crowdin.
at line 102
ResponseInterface
delete(Languagefile $file)
Delete file from Crowdin project. All the translations will be lost without ability to restore them.
at line 121
ResponseInterface
export(string $file, string $language, string $toPath)
This method exports single translated files from Crowdin.
Additionally, it can be applied to export XLIFF files for offline localization. (@todo)