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
get()
Get MT
public
get(int $mtId) : MachineTranslationEngine|null
Parameters
- $mtId : int
Tags
Return values
MachineTranslationEngine|nulllist()
List MTs
public
list([array<string|int, mixed> $params = [] ]) : ModelCollection
Parameters
- $params : array<string|int, mixed> = []
-
integer $params[groupId]
integer $params[limit]
integer $params[offset]
Tags
Return values
ModelCollectiontranslateViaMT()
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.