Module crowdin_api.api_resources.machine_translation_engines.resource

Classes

class EnterpriseMachineTranslationEnginesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Machine Translation Engines (Crowdin Enterprise).

Machine Translation Engines (MTE) are the sources for pre-translations.

Use API to add, update, and delete specific MTE.

Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#tag/Machine-Translation-Engines

Ancestors

Methods

def add_mt(self, name: str, type: MachineTranslationEngineType, credentials: Union[MachineTranslationEngineApiKeyCredentials, MachineTranslationEngineGoogleAutoMLCredentials, MachineTranslationEngineMicrosoftCredentials, MachineTranslationEngineAmazonCredentials, MachineTranslationEngineCustomMTCredentials], groupId: Optional[int] = None, enabledLanguageIds: Optional[Iterable[str]] = None, enabledProjectIds: Optional[Iterable[int]] = None, isEnabled: Optional[bool] = None)
def delete_mt(self, mtId: int)
def edit_mt(self, mtId: int, data: Iterable[MachineTranslationEnginePatchRequest])
def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None, groupId: Optional[int] = None)

List MTs.

:param groupId: Group Identifier. Set 0 to see MTs of root group

Link to documentation: https://support.crowdin.com/developer/enterprise/api/v2/#operation/api.mts.getMany

Inherited members

class MachineTranslationEnginesResource (requester: APIRequester, project_id: Optional[int] = None, page_size=25)

Resource for Machine Translation Engines.

Machine Translation Engines (MTE) are the sources for pre-translations.

Use API to add, update, and delete specific MTE.

Link to documentation: https://support.crowdin.com/developer/api/v2/#tag/Machine-Translation-Engines

Ancestors

Subclasses

Methods

def get_mt(self, mtId: int)
def get_mts_path(self, mtId: Optional[int] = None)
def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None)
def translate_via_mt(self, mtId: int, targetLanguageId: str = None, languageRecognitionProvider: Optional[LanguageRecognitionProvider] = None, sourceLanguageId: Optional[str] = None, strings: Optional[Iterable[str]] = None)