Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »

Given a language pair, this method returns all MT systems that are able to translate these languages.

Available from November 2021.

URL

(GET) /api/settings/mt/findmatches

PARAMETERS

The BODY is a JSON object with these properties:

src

The source locale such as "en" or "fr-FR".

string, Mandatory

trgThe target locale.string, Mandatory

RESULTS

The result is a JSON object with all active machine translation systems in the order they are configured. Each element has these properties:

idThe unique ID of the MT profile.int
nameThe name of the profile.string
systemThe underlying system such as "Microsoft" or "Intento"string
enabledTrue: The connector is enabled. Note that this API only returns enabled connectors and so this property is always true.bool
providerAn internal numeric code for the system.int
srcThe connector profile source locale that will be used (either identical or having regional variant). Most connectors allow differences in locales.string
srctThe source locale name.string
trgThe connector profile target locale that will be used.string
trgtThe target locale name.


EXAMPLES

Get enabled systems:

(POST) /api/settings/mt/findmatches
BODY
{ "src": "en-US", "trg": "fr-BE" }

Sample result:

[
    {
        "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 that can access the Wordbee Translator "Settings" pages.




  • No labels