Given a language pair, this method returns all MT systems that are able to translate these languages.
Warning |
---|
Available from November 2021. |
URL
(GETPOST) /api/settings/mt/findmatches
...
id | The unique ID of the MT profile. | int |
name | The name of the profile. | string |
system | The underlying system such as "Microsoft" or "Intento" | string |
enabled | True: The connector is enabled. Note that this API only returns enabled connectors and so this property is always true. | bool |
provider | An internal numeric code for the system. | int |
src | The connector profile source locale that will be used (either identical or having regional variant). Most connectors allow differences in locales. The Meta Connector system is an example of a connector only accepting exactly matching language codes. | string |
srct | The source locale name. | string |
trg | The connector profile target locale that will be used. | string |
trgt | The target locale name. |
EXAMPLES
Get enabled systems:
Code Block |
---|
(GETPOST) /api/settings/mt/names?enabledOnly=truefindmatches BODY { "src": "bg-BG", "trg": "zh" } |
Sample result. Note how both connectors accept regional variations in the language codes.
Code Block |
---|
[
{
"id": 600,
"system": "Pseudo Translation",
"name": "Pseudo Translation",
"enabled": true,
"provider": 100,
"src": "bg",
"srct": "Bulgarian (bg)",
"trg": "zh",
"trgt": "Chinese (zh)"
},
{
"id": 831,
"system": "Microsoft (v2)",
"name": "My Microsoft",
"enabled": true,
"provider": 17,
"src": "bg",
"srct": "Bulgarian (bg)",
"trg": "zh-CHS",
"trgt": "Chinese (Simplified) Legacy (zh-CHS)"
}
]
|
ACCESS RIGHTS
For users who that can also access MT configurations onlineaccess the Wordbee Translator "Settings" pages.