Documentation

MachineTranslationEngineApi extends AbstractApi
in package

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

You can currently connect Google Translate, Microsoft Translator, DeepL Pro, Amazon Translate, and Watson (IBM) Translate engines.

Table of Contents

Methods

get()  : MachineTranslationEngine|null
Get MT
list()  : ModelCollection
List MTs
translateViaMT()  : MachineTranslation|null
Translate via MT

Methods

translateViaMT()

Translate via MT

public translateViaMT(int $mtId, array<string|int, mixed> $data) : MachineTranslation|null
Parameters
$mtId : int
$data : array<string|int, mixed>

string $data[languageRecognitionProvider] Enum: "crowdin" "engine" Note: Is required if the source language is not selected
string $data[sourceLanguageId]
string $data[targetLanguageId] required
string[] $data[strings] Note: You can translate up to 100 strings at a time.

Tags
link

API Documentation

link

API Documentation Enterprise

Return values
MachineTranslation|null

        
On this page

Search results