Module crowdin_api.api_resources.machine_translation_engines.resource
Classes
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://developer.crowdin.com/api/v2/#tag/Machine-Translation-Engines
Ancestors
Methods
def get_mt(self, mtId: int)
-
Get MT.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.get
def get_mts_path(self, mtId: Optional[int] = None)
def list_mts(self, limit: Optional[int] = None, offset: Optional[int] = None)
-
List MTs.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.getMany
def translate_via_mt(self, mtId: int, targetLanguageId: str = None, languageRecognitionProvider: Optional[LanguageRecognitionProvider] = None, sourceLanguageId: Optional[str] = None, strings: Optional[Iterable[str]] = None)
-
Create Translate via MT.
Link to documentation: https://developer.crowdin.com/api/v2/#operation/api.mts.translations.post