Documentation

MachineTranslationEngineApi extends MachineTranslationEngineApi
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. Use API to add, update, and delete specific MTE.

Table of Contents

Methods

create()  : MachineTranslationEngine|null
Add MT
delete()  : mixed
Delete MT
get()  : MachineTranslationEngine|null
Get MT
list()  : ModelCollection
List MTs
translateViaMT()  : MachineTranslation|null
Translate via MT
update()  : MachineTranslationEngine|null
Edit 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