Aplicativo MT personalizado

You can translate your content using machine translation engines in Crowdin. If you don’t see the engine you need among the supported MT engines, you can connect your own engine by creating an app.

Creating the Custom MT App

Anyone can create apps that will extend the functionality of Crowdin. For detailed instructions, read articles Getting started with Crowdin apps and Creating an OAuth app.

The functionality of some apps is implemented using webhook events, while others use modules. For this kind of app, you’ll need to utilize modules. Modules are the functional parts that integrate each app into specific parts of Crowdin UI and interact with it. Make sure to use the “custom-mt” module in your app manifest.

Note: Ensure your app uses the same language codes as Crowdin supports. If some languages don’t match, set up language mapping.

Request example:

Request body:

{"strings": ["Start", "Next"] }

Query:

  "target": "de"
  "source": "en"
  "jwtToken": "jwt token"

Response example:

{
  "data": {
    "translations": ["Start", "Nächste"]
}

Installing the Custom MT App

Once you create the app, you can install it in Crowdin via manifest.json.

To install the app, follow these steps:

  1. Go to Account Settings > Crowdin Applications.
  2. Click Manual install.
  3. In the appeared dialog, paste the manifest in the Manifest URL field.

Now, you can connect this MT to your projects:

  1. Open your profile home page and go to the Machine Translation tab.
  2. Scroll down to the Custom MT Translator section and select the app you connected from the drop-down list.

Once connected, you can use it to pre-translate content or show translation suggestions in the Editor.

Este artigo foi útil?