<a id="machine-translation-setup"></a>

# Serviços de tradução

#### Versionchanged
Alterado na versão 4.13: Antes do Weblate 4.13, os serviços eram configurados no [Configuração](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/config.md#config).

The support for several machine translation and translation memory services is
built-in. You can install a service more than once with different settings. An
administrator can configure installations for the whole site under
Translation services in [Interface de gerenciamento](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/admin.md#management-interface). Workspace
administrators can configure installations for their workspace, and project
administrators can configure them for a project:

![image](screenshots/project-machinery.webp)

#### NOTE
They come subject to their terms of use, so ensure you are allowed to use
them how you want. Third-party services can receive source strings,
translations, and related context from Weblate.

Os serviços traduzem do idioma fonte conforme configurado em [Configuração de componente](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/projects.md#component), consulte [Idioma fonte](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/projects.md#component-source-language).

Installations from the site, workspace, and project are combined for a project.
You can exclude an inherited installation, or all inherited installations of
one service, in workspace or project settings. Pausing an installation keeps
its configuration for later use.

Select a service in the listing to open its details, settings, and controls.
Installed services use their numeric installation ID in the detail-page URL.
The detail page provides selectors to use in Automation workflows. Inherited
services link to their owning scope when you have permission to manage them.
The listing summarizes basic configuration such as the model, source-language
selection, and region, together with the installation ID and slug. Credentials,
API URLs, and free-form prompts are excluded from these summaries.

A Rate limited badge indicates that Weblate has temporarily paused
requests after a provider error. The default cooldown is 30 minutes, but its
duration varies by service and provider-supplied retry delays; see
[cooldown configuration](#machinery-rate-limit-window). It applies to one
installation, including all projects inheriting it. Separate installations have
independent cooldowns, even when they use the same provider credentials.

Administrators can use Reset rate limit on the installation’s detail
page at its owning site, workspace, or project scope. This clears Weblate’s
translation and rephrasing cooldowns without clearing cached suggestions. It
does not reset the provider’s quota; another provider error can apply the
cooldown again. Inherited installations show the status, but their cooldown
cannot be reset from a consuming workspace or project.

<a id="machinery-error-log"></a>

The Logs tab on an installation’s detail page lists errors from
fetching supported languages, translations, and rephrased suggestions, including
provider rate limits. Logs belong to the installation, including when it is used
by inheriting projects. Only administrators who can manage the installation at
its owning scope can read its logs. Inherited services link to these logs when
you have the required permission.

Messages retain provider diagnostics with URLs and configured secrets redacted.
Providers can echo translation content in their messages, so logs can still
contain source strings or translations. Errors are kept for 30 days by default;
configure [`MACHINERY_ERROR_KEEP_DAYS`](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/config.md#std-setting-MACHINERY_ERROR_KEEP_DAYS) to change retention. Old entries
are removed daily. Removing an installation also removes its logs.

Every installation has a numeric ID and can have an optional slug. Select one
installation in automatic translation, Automation, or AI review with
`service:id` or `service:slug`. A bare service name is accepted when only
one active installation of that service applies to the project. A non-empty
slug must be unique among all installations visible to a project, including
inherited installations. Separate projects can use the same slug. Saved slug
selectors follow the installation currently using that slug. Services without
configuration settings can be installed once per scope and must not overlap
with enabled inherited installations. Exclude an inherited installation before
enabling another one in a lower scope. Each scope can contain up to 20
installations, including paused ones.

For `install_machinery --update`, specify a unique `--slug` or `--id`
when more than one site installation of a service exists.

Translation service installations can also be configured via the [API REST do Weblate](https://docs.weblate.org/pt-br/weblate-2026.11.1/api.md#api).

Configured translation services provide suggestions in the
Automatic suggestions tab of the translation editor and can be
selected for [Tradução automática](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/translating.md#auto-translation).

#### SEE ALSO
[Sugestões automáticas](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/translating.md#machine-translation)

<a id="mt-translation-services-priority"></a>

## Prioridade dos serviços de tradução automática e memória de tradução

Correspondências de [Weblate Translation Memory](#mt-weblate-translation-memory) com pontuação de 100% têm prioridade sobre os serviços de tradução automática. Se for encontrada uma correspondência de 100% na memória de tradução, nenhuma tradução automática será executada. Se ocorrerem várias correspondências de 100%, será usada a primeira retornada pelo banco de dados.

Cada serviço de tradução automática tem uma pontuação máxima predefinida que pode produzir. O uso dos serviços de tradução instalados é ordenado de acordo com sua pontuação máxima. Para cada texto com pontuação de tradução inferior à pontuação máxima do serviço, o serviço é solicitado a produzir uma tradução. As traduções com uma pontuação superior à atual são aceitas.

For explicit ordering and a separate score threshold for each service, use
[Apply translation memory before machine translation](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/automation.md#automation-translation-ordering). This workflow completes one translation
pass before selecting the strings for the next service.

<a id="mt-sources"></a>

## Texto fonte para tradução automática

#### Versionadded
Adicionado na versão 5.11.

A origem de textos fontes para todos os serviços de terceiros pode ser configurada. Isso pode ser usado para ajustar o serviço para obter os melhores resultados. As seguintes opções estão disponíveis:

Seleção automática
: Escolhe automaticamente o melhor idioma fonte.
  <br/>
  Este é o comportamento padrão.

Idioma fonte do componente
: Usa o idioma fonte do componente.
  <br/>
  Esse era o comportamento antes da versão 5.11.

Idioma secundário definido no projeto ou componente
: Use o projeto [Idioma secundário](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/projects.md#project-secondary-language) ou o componente [Idioma secundário](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/projects.md#component-secondary-language).
  <br/>
  Retorna à seleção automática do idioma fonte se o idioma secundário não estiver configurado.

<a id="llm-translation-context"></a>

## LLM translation context

LLM-based translation services receive additional context about each
translated string, when available. This includes the string context or
monolingual key, additional explanation, configured secondary-language
translation, plural information, failing quality checks, and placeholder
contents. Matching glossary entries are passed with their explanations and
selected flags, so duplicate glossary terms can be disambiguated.

You can add target-language-specific instructions in
Language-specific instructions using a JSON object mapping language
codes to text. Language codes have to exist in Weblate and are matched exactly;
whitespace is not ignored. Each instruction can contain up to 1000 characters.
Weblate first looks for the exact target language code and then falls back to
the base language code.

The added metadata is used only to guide the generated suggestion; the returned
translation still has to preserve the source placeholders and markup. Weblate
also sends a short previous chat exchange to LLM services to demonstrate the
expected JSON response format. The exchange uses bundled translated examples
when available for the source and target language pair, or language-neutral
formatting examples otherwise. Existing translations for the same target
language can be appended as additional examples.

<!-- AUTOGENERATED START: alibaba -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-alibaba"></a>

## Alibaba

#### Versionadded
Adicionado na versão 5.3.

* **ID do serviço:**
  `alibaba`
* **Maximum score:**
  80
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte    | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | ID da chave de acesso      |                                                                                                                                                                                        |
  | `secret`            | Segredo da chave de acesso |                                                                                                                                                                                        |
  | `region`            | ID da região               |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: alibaba -->

O Alibaba Translate é um serviço de tradução automática neural para traduzir textos e suporta até 214 pares de idiomas.

#### SEE ALSO
[Documentação do Alibaba Translate](https://www.alibabacloud.com/help/en/machine-translation)

<!-- AUTOGENERATED START: anthropic -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-anthropic"></a>

## Anthropic

#### Versionadded
Adicionado na versão 5.16.

* **ID do serviço:**
  `anthropic`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
  * [LLM translation context](#llm-translation-context)
* **Configuração:**
  | `source_language`       | Seleção do idioma fonte        | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                                                                                                                                                       |
  |-------------------------|--------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `base_url`              | URL da API Anthropic           | URL base da API Anthropic. Deixe em branco para usar a URL padrão.                                                                                                                                                                                                                                                                         |
  | `model`                 | Anthropic modelo               | Escolhas disponíveis:<br/><br/>`claude-haiku-4-5` – Claude Haiku 4.5<br/><br/>`claude-sonnet-5` – Claude Sonnet 5<br/><br/>`claude-opus-5` – Claude Opus 5<br/><br/>`claude-fable-5-1` – Claude Fable 5.1<br/><br/>`claude-opus-4-8` – Claude Opus 4.8<br/><br/>`claude-fable-5` – Claude Fable 5<br/><br/>`custom` – Modelo personalizado |
  | `persona`               | Personagem do tradutor         | Descreva a função ou a especialização do tradutor. Por exemplo: “Você é um tradutor experiente da área médica.”                                                                                                                                                                                                                            |
  | `style`                 | Translation style              | Descreva o estilo de tradução desejado. Por exemplo: “Use linguagem informal.”                                                                                                                                                                                                                                                             |
  | `language_instructions` | Language-specific instructions | Enter a JSON object mapping target language codes recognized by Weblate to additional translation instructions. Each instruction can contain up to 1000 characters. For example: {“de”: “Use formal address.”}                                                                                                                             |
  | `key`                   | Chave da API                   |                                                                                                                                                                                                                                                                                                                                            |
  | `custom_model`          | Nome do modelo personalizado   | Required when ‘Custom model’ is selected. Enter the model identifier used by the API.                                                                                                                                                                                                                                                      |
  | `max_tokens`            | Tokens máximos                 | Maximum number of tokens in the generated response.                                                                                                                                                                                                                                                                                        |

<!-- AUTOGENERATED END: anthropic -->

Realiza traduções utilizando os modelos [Claude da Anthropic](https://www.anthropic.com/).

The Anthropic API provides access to the Claude family of models, which are
known for their strong reasoning and language capabilities. You need an API key
from Anthropic to use this service.

The model choices favor current generally available Claude models. Previously
offered models remain selectable while Anthropic continues to support them.

Utilize os campos de persona e estilo para ajustar ainda mais as traduções. Eles serão usados em um prompt na Claude e permitirão alterar o estilo das traduções.

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

#### SEE ALSO
* [Anthropic API documentation](https://docs.anthropic.com/en/api/getting-started)
* [Anthropic Console](https://platform.claude.com/)

<!-- AUTOGENERATED START: apertium-apy -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-apertium-apy"></a>

## Apertium APy

* **ID do serviço:**
  `apertium-apy`
* **Maximum score:**
  88
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: apertium-apy -->

Uma plataforma de tradução automática e software livre que fornece traduções para um conjunto limitado de idiomas.

A maneira recomendada de usar o Apertium é executar seu próprio servidor Apertium-APy.

#### SEE ALSO
* [Apertium website](https://www.apertium.org/)
* [Apertium APy documentation](https://wiki.apertium.org/wiki/Apertium-apy)

<!-- AUTOGENERATED START: aws -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-aws"></a>

## Amazon Translate

* **ID do serviço:**
  `aws`
* **Maximum score:**
  88
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | ID da chave de acesso     |                                                                                                                                                                                        |
  | `secret`            | Chave secreta da API      |                                                                                                                                                                                        |
  | `region`            | Nome da região            |                                                                                                                                                                                        |
  | `formality`         | Formalidade               | Escolhas disponíveis:<br/><br/>*empty value* – Default<br/><br/>`FORMAL` – Formal<br/><br/>`INFORMAL` – Informal                                                                       |
  | `brevity`           | Brevity                   | Dar preferência a traduções mais curtas quando houver suporte.<br/><br/>Escolhas disponíveis:<br/><br/>*empty value* – Default<br/><br/>`ON` – Enabled                                 |
  | `profanity`         | Profanity                 | Ocultar palavras vulgares no texto traduzido.<br/><br/>Escolhas disponíveis:<br/><br/>*empty value* – Default<br/><br/>`MASK` – Mask profanity                                         |

<!-- AUTOGENERATED END: aws -->

O Amazon Translate é um serviço de tradução automática neural para traduzir textos do inglês ou para o inglês em uma ampla variedade de idiomas suportados. O serviço requer a política de gerenciamento TranslateFullAccess.

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

#### SEE ALSO
* [Documentação do Amazon Translate](https://docs.aws.amazon.com/translate/)
* [AWS TranslateFullAccess Policy](https://docs.aws.amazon.com/aws-managed-policy/latest/reference/TranslateFullAccess.html)

<!-- AUTOGENERATED START: azure-openai -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-azure-openai"></a>

## Azure OpenAI

#### Versionadded
Adicionado na versão 5.8.

* **ID do serviço:**
  `azure-openai`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
  * [LLM translation context](#llm-translation-context)
* **Configuração:**
  | `source_language`       | Seleção do idioma fonte             | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                           |
  |-------------------------|-------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `base_url`              | URL da API                          |                                                                                                                                                                                                                |
  | `model`                 | Modelo LLM                          |                                                                                                                                                                                                                |
  | `persona`               | Personagem do tradutor              | Descreva a função ou a especialização do tradutor. Por exemplo: “Você é um tradutor experiente da área médica.”                                                                                                |
  | `style`                 | Translation style                   | Descreva o estilo de tradução desejado. Por exemplo: “Use linguagem informal.”                                                                                                                                 |
  | `language_instructions` | Language-specific instructions      | Enter a JSON object mapping target language codes recognized by Weblate to additional translation instructions. Each instruction can contain up to 1000 characters. For example: {“de”: “Use formal address.”} |
  | `key`                   | Chave da API                        |                                                                                                                                                                                                                |
  | `azure_endpoint`        | URL para o endpoint do Azure OpenAI | URL para o endpoint da instância, por exemplo: [https://my-instance.openai.azure.com](https://my-instance.openai.azure.com).                                                                                   |
  | `deployment`            | Implementação do Azure OpenAI       | O nome de implementação exclusivo do modelo.                                                                                                                                                                   |

<!-- AUTOGENERATED END: azure-openai -->

Executa a tradução usando [OpenAI](https://openai.com/) hospedada no Azure.

#### SEE ALSO
[OpenAI](#mt-openai)

<!-- AUTOGENERATED START: baidu -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-baidu"></a>

## Baidu

* **ID do serviço:**
  `baidu`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | ID do cliente             |                                                                                                                                                                                        |
  | `secret`            | Chave secreta             |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: baidu -->

Serviço de tradução automática fornecido pelo Baidu.

Este serviço usa uma API e você precisa obter um ID e uma chave de API do Baidu para usá-lo.

#### SEE ALSO
[Baidu Translate API](https://fanyi-api.baidu.com/product/11)

<!-- AUTOGENERATED START: cyrtranslit -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-cyrtranslit"></a>

## CyrTranslit

#### Versionadded
Adicionado na versão 5.7.

* **ID do serviço:**
  `cyrtranslit`
* **Maximum score:**
  100
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

<!-- AUTOGENERATED END: cyrtranslit -->

Serviço de tradução automática usando a biblioteca Cyrtranslit.

Esse serviço converte texto entre os scripts Cirílico e Latino para idiomas que têm ambos os scripts.

#### SEE ALSO
[Repositório Cyrtranslit](https://github.com/opendatakosovo/cyrillic-transliteration)

<!-- AUTOGENERATED START: deepl -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-deepl"></a>

## DeepL

* **ID do serviço:**
  `deepl`
* **Maximum score:**
  91
* **Advanced features:**
  * [Placeables in automatic suggestion](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/checks.md#placeables-mt)
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte     | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|-----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                  |                                                                                                                                                                                        |
  | `key`               | Chave da API                |                                                                                                                                                                                        |
  | `formality`         | Formalidade                 | Usa a formalidade especificada se o idioma não for especificado como (in)formal                                                                                                        |
  | `context`           | Contexto da tradução        | Descreva o contexto da tradução para melhorar a precisão da tradução.                                                                                                                  |
  | `next_gen`          | Usar modelo de nova geração | Preferir modelo de linguagem de nova geração em vez do modelo de tradução de máquina clássico.                                                                                         |

<!-- AUTOGENERATED END: deepl -->

DeepL is a paid service providing good machine translation for a few languages.
You need to purchase DeepL API subscription.

API URL to use with the DeepL service. Configure the base endpoint without an API
version; Weblate selects the appropriate DeepL API version for each request.
For a legacy subscription requiring API v1, configure
`https://api.deepl.com/v1/` instead.

#### Versionchanged
Alterado na versão 2026.9.1: Support for explicitly configured DeepL API v1 endpoints has been restored.

`https://api.deepl.com/` (default in Weblate)
: Destina-se ao uso da API no plano pago e a assinatura é baseada em uso.

`https://api-free.deepl.com/`
: Destina-se ao uso da API no plano gratuito e a assinatura é baseada em uso.

O Weblate oferece suporte à formalidade no DeepL, ele escolherá uma correspondência com base no idioma (por exemplo, há `de@formal` e `de@informal`).

The translation context can optionally be specified to improve translations quality. Read more on that in
[DeepL translation context documentation](https://developers.deepl.com/docs/learning-how-tos/examples-and-guides/how-to-use-context-parameter).

The service automatically uses [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), see [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).
Glossary integration is not available with API v1.

<a id="mt-deepl-rephrase"></a>

## Rephrasing existing translations

When a string is already translated, Weblate can send the stored target text to the
DeepL Write API `/v2/write/rephrase` endpoint and show the improved text as an
additional machine translation suggestion.

This requires a DeepL API Pro subscription using `https://api.deepl.com/`.
Rephrasing is skipped when using the free API endpoint.

Only languages supported by the DeepL Write API are eligible.
The stored translation is sent as plain text, without the XML placeholder
handling used for DeepL translation.
Rephrase suggestions use a slightly lower score than DeepL translations so
automatic translation keeps preferring the translate result.
Successful rephrases are cached; this still performs an extra API request on
cache miss and may increase API usage and billing.

#### SEE ALSO
* [DeepL translator (tradutor online)](https://www.deepl.com/translator)
* [Preços da DeepL](https://www.deepl.com/pro)
* [DeepL API documentation](https://developers.deepl.com/docs/getting-started/quickstart)

<!-- AUTOGENERATED START: etranslation -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-etranslation"></a>

## eTranslation

* **ID do serviço:**
  `etranslation`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte    | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                                                                                                  |
  |---------------------|----------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Application name           |                                                                                                                                                                                                                                                                                       |
  | `secret`            | Senha                      |                                                                                                                                                                                                                                                                                       |
  | `domain`            | Default language domain    | Escolhas disponíveis:<br/><br/>`GEN` – General Text (GEN)<br/><br/>`SPD` – EU Formal Language (SPD)<br/><br/>`ECB` – Finance (ECB)<br/><br/>`ECJ` – European Court of Justice (ECJ)<br/><br/>`IPO` – EIP Case Law (Intellectual Property) (IPO)<br/><br/>`_OTHER` – Other domain code |
  | `other_domain`      | Other domain code          | Insira um código de domínio do eTranslation ao selecionar “Outro código de domínio”.                                                                                                                                                                                                  |
  | `component_domains` | Component language domains | Mapeamento de objeto JSON de caminhos completos de componentes para códigos de domínio, por exemplo {“my-project/privacy-policy”: “SPD”}.                                                                                                                                             |

<!-- AUTOGENERATED END: etranslation -->

Register an application with the European Commission to obtain its application
name and password, then configure [eTranslation](#mt-etranslation) in Automatic
suggestions. The credentials are sent with HTTP Basic authentication. The
default language domain is `GEN` (General Text). Select one of the documented
domains by name, or select Other domain code to enter a code returned
by eTranslation. The service’s domains endpoint supplies available domain codes
and their supported language pairs. The API also lists `QE` (Quality
Estimation) and `NER`, but their use as translation domains is not described
in the domain documentation.

Use Component language domains to select a different domain for
individual components. Enter a JSON object whose keys are full component paths,
including category segments where applicable. Use the domain codes shown in
parentheses in the Default language domain choices:

```default
{"my-project/privacy-policy": "SPD"}
```

Components absent from the mapping use Default language domain.
The mapping belongs to the eTranslation service configuration, not to component
settings. Project-level service configuration overrides the site-wide service
configuration as it does for other suggestion services. Suggestions show the
domain used for each translation.

eTranslation returns text through an asynchronous callback. Set
[`SITE_DOMAIN`](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/config.md#std-setting-SITE_DOMAIN) to the publicly reachable domain and enable HTTPS so
the callback URL is accessible from eTranslation. All Weblate application
processes must share the configured cache. Weblate waits up to 15 seconds for
each text suggestion; a later callback cannot populate that suggestion.
Text snippets longer than 5,000 characters are skipped.

#### SEE ALSO
* [eTranslation REST v2 text API](https://language-tools.ec.europa.eu/dev-corner/etranslation/rest-v2/text)
* [eTranslation language pairs and domains](https://language-tools.ec.europa.eu/dev-corner/etranslation/rest-v2/languages-pairs)
* [eTranslation error codes](https://language-tools.ec.europa.eu/dev-corner/etranslation/rest-v2/error-codes)
* [Request eTranslation API credentials](https://language-tools.ec.europa.eu/registerApiKey)

<!-- AUTOGENERATED START: glosbe -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-glosbe"></a>

## Glosbe

* **ID do serviço:**
  `glosbe`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|

<!-- AUTOGENERATED END: glosbe -->

Dicionário gratuito e memória de tradução para quase todos os idiomas vivos.

O uso da API é gratuito, mas o uso das traduções está sujeito à licença da fonte de dados usada. Existe um limite de chamadas que podem ser feitas de um IP em um determinado período de tempo, para evitar abusos.

#### SEE ALSO
[Site do Glosbe](https://glosbe.com/)

<!-- AUTOGENERATED START: google-translate -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-google-translate"></a>

## Tradução básica do Google Cloud

* **ID do serviço:**
  `google-translate`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: google-translate -->

Serviço de tradução automática fornecido pelos serviços do Google Cloud.

Este serviço usa a API V2 do Google Tradutor, e você precisa obter uma chave de API e ativar a cobrança no console da API do Google.

#### SEE ALSO
[Google translate documentation](https://docs.cloud.google.com/translate/docs)

<!-- AUTOGENERATED START: google-translate-api-v3 -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-google-translate-api-v3"></a>

## Tradução avançada do Google Cloud

* **ID do serviço:**
  `google-translate-api-v3`
* **Maximum score:**
  90
* **Advanced features:**
  * [Placeables in automatic suggestion](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/checks.md#placeables-mt)
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte                             | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|-----------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `credentials`       | Informações do serviço de contas do Google Tradutor | Insira uma chave JSON para a conta de serviço.                                                                                                                                         |
  | `project`           | Projeto do Google Tradutor                          | Insira o ID numérico ou alfanumérico do seu projeto do Google Cloud.                                                                                                                   |
  | `location`          | Regionalização do Google Tradutor                   | Escolha uma região do Google Cloud Translation usada para o projeto do Google Cloud ou mais próxima de você.                                                                           |
  | `bucket_name`       | Nome do Google Storage Bucket                       | Insira o nome do bucket do Google Cloud Storage usado para armazenar os arquivos do glossário.                                                                                         |

<!-- AUTOGENERATED END: google-translate-api-v3 -->

Serviço de tradução automática fornecido pelos serviços do Google Cloud.

Este serviço usa a API V3 do Google Tradutor e você precisa de credenciais no formato JSON para acessá-lo.

Para usar este serviço, primeiro você precisa seguir os seguintes passos:

1. [Selecione ou crie um projeto da Cloud Platform.](https://console.cloud.google.com/project)
2. [Habilitar cobrança para o seu projeto.](https://docs.cloud.google.com/billing/docs/how-to/modify-project#enable_billing_for_a_project)
3. [Habilitar Tradução na Nuvem.](https://docs.cloud.google.com/translate/docs)
4. [Configurar autenticação.](https://googleapis.dev/python/google-api-core/latest/auth.html)

Opcionalmente, você pode configurar o serviço para usar [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary) configurando um Bucket:

1. [Crie um bucket do Google Cloud.](https://docs.cloud.google.com/storage/docs/creating-buckets)
2. [Defina o local do bucket como “us-central1”.](https://docs.cloud.google.com/translate/docs/migrate-to-v3#resources_projects_and_locations)
3. [Conceda a permissão “Storage Admin” à conta de serviço.](https://docs.cloud.google.com/translate/docs/access-control)

#### SEE ALSO
* [Google translate documentation](https://docs.cloud.google.com/translate/docs)
* [Authenticate to Cloud services using client libraries](https://docs.cloud.google.com/docs/authentication/client-libraries)
* [Criando um projeto no Google Tradutor](https://docs.cloud.google.com/appengine/docs/standard/nodejs/building-app/creating-project)
* [Google Cloud App Engine locations](https://docs.cloud.google.com/appengine/docs/standard/locations)

<a id="mt-ibm"></a>

## Tradutor de idiomas IBM Watson

#### Versionremoved
Removido na versão 5.13.1: This service was withdrawn by vendor as of 10 December 2024.

<!-- AUTOGENERATED START: libretranslate -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-libretranslate"></a>

## LibreTranslate

#### Versionadded
Adicionado na versão 4.7.1.

* **ID do serviço:**
  `libretranslate`
* **Maximum score:**
  89
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                |                                                                                                                                                                                        |
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: libretranslate -->

LibreTranslate é um serviço gratuito e open-source para traduções automáticas. A instância pública requer uma chave API, mas o LibreTranslate pode ser auto-hospedado e há vários espelhos disponíveis para usar a API gratuitamente.

`https://libretranslate.com/` (instância pública oficial)
: Requer uma chave de API para usar fora do website.

#### SEE ALSO
* [LibreTranslate website](https://libretranslate.com/)
* [LibreTranslate repository](https://github.com/LibreTranslate/LibreTranslate)
* [LibreTranslate Docker container integration](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/install/docker.md#docker-libretranslate)

<!-- # spellchecker:off -->
<!-- AUTOGENERATED START: ltengine -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-ltengine"></a>

## LTEngine

#### Versionadded
Adicionado na versão 5.17.1.

* **ID do serviço:**
  `ltengine`
* **Maximum score:**
  89
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                |                                                                                                                                                                                        |
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: ltengine -->

LTEngine provides a local LibreTranslate-compatible API backed by large language
models. For many Weblate installations, native LLM services such as
[Ollama](#mt-ollama) can be a better fit because Weblate can send translation
context directly to the model. Use LTEngine when you specifically want its local
translation engine or future LTEngine translation improvements.

<!-- AUTOGENERATED START: microsoft-translator -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-microsoft-translator"></a>

## Tradutor IA da Azure

* **ID do serviço:**
  `microsoft-translator`
* **Maximum score:**
  90
* **Advanced features:**
  * [Placeables in automatic suggestion](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/checks.md#placeables-mt)
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte           | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                                                                                                                                                                                                                                                     |
  |---------------------|-----------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Chave da API                      |                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | `base_url`          | URL base da aplicação             | Escolhas disponíveis:<br/><br/>`api.cognitive.microsofttranslator.com` – Global (não-regional)<br/><br/>`api-apc.cognitive.microsofttranslator.com` – Ásia Pacífico<br/><br/>`api-eur.cognitive.microsofttranslator.com` – Europa<br/><br/>`api-nam.cognitive.microsofttranslator.com` – América do Norte<br/><br/>`api.translator.azure.cn` – China<br/><br/>`api.cognitive.microsofttranslator.us` – Nuvem do Governo dos EUA da Azure |
  | `endpoint_url`      | Autenticação serviço URL          | Regional ou multisserviço pode ser especificado usando o campo de região abaixo.<br/><br/>Escolhas disponíveis:<br/><br/>`api.cognitive.microsoft.com` – Global<br/><br/>`api.cognitive.azure.cn` – China<br/><br/>`api.cognitive.microsoft.us` – Nuvem do Governo dos EUA da Azure                                                                                                                                                      |
  | `region`            | Autenticação de região de serviço |                                                                                                                                                                                                                                                                                                                                                                                                                                          |
  | `category`          | Categoria                         | Especifique um ID da categoria de sistema customizado para usá-lo em vez de um ID geral.                                                                                                                                                                                                                                                                                                                                                 |

<!-- AUTOGENERATED END: microsoft-translator -->
<!-- # spellchecker:on -->

Machine translation service provided by Microsoft in Azure portal as one of
Cognitive Services.

Weblate implementa API V3 do Tradutor.

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary) por meio do [dicionário dinâmico](https://learn.microsoft.com/en-us/azure/ai-services/translator/dynamic-dictionary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

### API V2 de texto do Tradutor

A chave que você usa com a API V2 do Tradutor pode ser usada com API 3.

### API V3 de texto do Tradutor

Você precisa se registrar no portal do Azure e usar a chave obtida lá. Com as novas chaves do Azure, você também precisa definir `region` para a região do seu serviço.

Você também pode especificar uma categoria personalizada para usar o [tradutor personalizado](https://learn.microsoft.com/en-gb/azure/ai-services/Translator/custom-translator/concepts/customization).

#### HINT
Para Azure China, use sua extremidade do Portal do Azure.

#### SEE ALSO
* [Cognitive Services - Text Translation API](https://azure.microsoft.com/en-us/products/ai-services/ai-translator)
* [Microsoft Azure Portal](https://portal.azure.com/)
* [URLs base](https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/v3/reference#base-urls)
* [“Autenticação com um recurso multisserviço”](https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/authentication#authenticating-with-a-multi-service-resource)
* [“Authenticating with an access token” section](https://learn.microsoft.com/en-us/azure/ai-services/translator/text-translation/reference/authentication#authenticating-with-an-access-token)

<!-- AUTOGENERATED START: mistral -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-mistral"></a>

## Mistral

#### Versionadded
Adicionado na versão 2026.7.

* **ID do serviço:**
  `mistral`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
  * [LLM translation context](#llm-translation-context)
* **Configuração:**
  | `source_language`       | Seleção do idioma fonte        | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                                                                                                                                                                                                                                                                                                                                                                |
  |-------------------------|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `base_url`              | Mistral API base URL           | Base URL of the Mistral API, if it differs from the Mistral default URL                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
  | `model`                 | Mistral model                  | With ‘Automatic selection’, Weblate selects the first model available through the API from its predefined preference list.<br/><br/>Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`mistral-small-latest` – Mistral Small 4<br/><br/>`ministral-14b-latest` – Ministral 3 14B<br/><br/>`ministral-8b-latest` – Ministral 3 8B<br/><br/>`ministral-3b-latest` – Ministral 3 3B<br/><br/>`mistral-large-latest` – Mistral Large 3<br/><br/>`mistral-medium-latest` – Mistral Medium 3.5<br/><br/>`custom` – Modelo personalizado |
  | `persona`               | Personagem do tradutor         | Descreva a função ou a especialização do tradutor. Por exemplo: “Você é um tradutor experiente da área médica.”                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | `style`                 | Translation style              | Descreva o estilo de tradução desejado. Por exemplo: “Use linguagem informal.”                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
  | `language_instructions` | Language-specific instructions | Enter a JSON object mapping target language codes recognized by Weblate to additional translation instructions. Each instruction can contain up to 1000 characters. For example: {“de”: “Use formal address.”}                                                                                                                                                                                                                                                                                                                                      |
  | `key`                   | Chave da API                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     |
  | `custom_model`          | Nome do modelo personalizado   | Required when ‘Custom model’ is selected. Enter the model identifier used by the API.                                                                                                                                                                                                                                                                                                                                                                                                                                                               |

<!-- AUTOGENERATED END: mistral -->

Automatic and predefined model selection queries the service model-listing
endpoint. Automatic selection prefers general-purpose models that balance
translation quality, response time, and price, trying other available models in
the displayed order. Choose Custom model when using a compatible
gateway that does not provide model discovery; Weblate sends the configured
model identifier directly to the chat endpoint.

<!-- AUTOGENERATED START: modernmt -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-modernmt"></a>

## ModernMT

#### Versionadded
Adicionado na versão 4.2.

* **ID do serviço:**
  `modernmt`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                |                                                                                                                                                                                        |
  | `key`               | Chave da API              |                                                                                                                                                                                        |
  | `context_vector`    | Vetor de contexto         | Lista separada por vírgulas de IDs de memória:peso. Por exemplo: 1234:0.123,4567:0.456                                                                                                 |

<!-- AUTOGENERATED END: modernmt -->

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

#### SEE ALSO
[API do ModernMT](https://www.modernmt.com/api/#translation)

<!-- AUTOGENERATED START: mymemory -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-mymemory"></a>

## MyMemory

* **ID do serviço:**
  `mymemory`
* **Maximum score:**
  100
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `email`             | E-mail de contato         |                                                                                                                                                                                        |
  | `username`          | Usuário                   |                                                                                                                                                                                        |
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: mymemory -->

Enorme memória de tradução com tradução automática.

O uso gratuito e anônimo está atualmente limitado a 100 solicitações/dia ou a 1000 solicitações/dia quando você fornece um endereço de e-mail de contato em `email`. Você também pode solicitar mais.

#### SEE ALSO
[Site do MyMemory](https://mymemory.translated.net/)

<!-- AUTOGENERATED START: netease-sight -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-netease-sight"></a>

## Netease Sight

* **ID do serviço:**
  `netease-sight`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | ID do cliente             |                                                                                                                                                                                        |
  | `secret`            | Chave secreta             |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: netease-sight -->

Serviço de tradução automática fornecido pela NetEase.

Este serviço usa uma API e você precisa obter uma chave e um segredo de NetEase.

#### SEE ALSO
[Plataforma de Tradução NetEase Sight](https://sight.youdao.com/)

<!-- AUTOGENERATED START: ollama -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-ollama"></a>

## Ollama

#### Versionadded
Adicionado na versão 5.15.

* **ID do serviço:**
  `ollama`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
  * [LLM translation context](#llm-translation-context)
* **Configuração:**
  | `source_language`       | Seleção do idioma fonte        | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                           |
  |-------------------------|--------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `base_url`              | URL da API                     | Base URL of the Ollama API, reachable from the Weblate server. The default is [http://localhost:11434](http://localhost:11434); localhost refers to the environment where Weblate runs.                        |
  | `model`                 | Modelo Ollama                  | Nome do modelo descrito no catálogo da Ollama.                                                                                                                                                                 |
  | `persona`               | Personagem do tradutor         | Descreva a função ou a especialização do tradutor. Por exemplo: “Você é um tradutor experiente da área médica.”                                                                                                |
  | `style`                 | Translation style              | Descreva o estilo de tradução desejado. Por exemplo: “Use linguagem informal.”                                                                                                                                 |
  | `language_instructions` | Language-specific instructions | Enter a JSON object mapping target language codes recognized by Weblate to additional translation instructions. Each instruction can contain up to 1000 characters. For example: {“de”: “Use formal address.”} |

<!-- AUTOGENERATED END: ollama -->

Realiza traduções utilizando modelos [Ollama](https://ollama.com/).

The Ollama API allows for the use of open source models for translations
either locally installed or remotely accessed via the [Ollama](https://ollama.com/) service.
Note that before configuring your models, you should have [Ollama installed](https://ollama.com/download)
and downloaded the models you wish to use.

Utilize os campos de persona e estilo para ajustar ainda mais as traduções. Eles serão usados em um prompt na Ollama e permitirão alterar o estilo das traduções.

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

#### SEE ALSO
* [Modelos Ollama](https://ollama.com/search)

<!-- AUTOGENERATED START: openai -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-openai"></a>

## OpenAI

#### Versionadded
Adicionado na versão 5.3.

* **ID do serviço:**
  `openai`
* **Maximum score:**
  90
* **Advanced features:**
  * [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt)
  * [LLM translation context](#llm-translation-context)
* **Configuração:**
  | `source_language`       | Seleção do idioma fonte        | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
  |-------------------------|--------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `base_url`              | URL base da API da OpenAI      | URL base da API do OpenAI, se for diferente do URL padrão do OpenAI                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
  | `model`                 | Modelo OpenAI                  | With ‘Automatic selection’, Weblate selects the first model available through the API from its predefined preference list.<br/><br/>Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`gpt-5.6-luna` – GPT-5.6 Luna<br/><br/>`gpt-5.4-mini` – GPT-5.4 mini<br/><br/>`gpt-5-mini` – GPT-5 mini<br/><br/>`gpt-5.4-nano` – GPT-5.4 nano<br/><br/>`gpt-5-nano` – GPT-5 nano<br/><br/>`gpt-5.6-terra` – GPT-5.6 Terra<br/><br/>`gpt-5.4` – GPT-5.4<br/><br/>`gpt-5` – GPT-5<br/><br/>`gpt-5.6` – GPT-5.6 Sol<br/><br/>`gpt-5.5` – GPT-5.5<br/><br/>`gpt-4.1-mini` – GPT-4.1 mini<br/><br/>`gpt-4o-mini` – GPT-4o mini<br/><br/>`gpt-4.1-nano` – GPT-4.1 nano<br/><br/>`gpt-4.1` – GPT-4.1<br/><br/>`gpt-4o` – GPT-4o<br/><br/>`gpt-4-turbo` – GPT-4 Turbo<br/><br/>`gpt-4` – GPT-4<br/><br/>`gpt-3.5-turbo` – GPT-3.5 Turbo<br/><br/>`custom` – Modelo personalizado |
  | `persona`               | Personagem do tradutor         | Descreva a função ou a especialização do tradutor. Por exemplo: “Você é um tradutor experiente da área médica.”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | `style`                 | Translation style              | Descreva o estilo de tradução desejado. Por exemplo: “Use linguagem informal.”                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | `language_instructions` | Language-specific instructions | Enter a JSON object mapping target language codes recognized by Weblate to additional translation instructions. Each instruction can contain up to 1000 characters. For example: {“de”: “Use formal address.”}                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
  | `key`                   | Chave da API                   |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   |
  | `custom_model`          | Nome do modelo personalizado   | Required when ‘Custom model’ is selected. Enter the model identifier used by the API.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |

<!-- AUTOGENERATED END: openai -->

Executa a tradução usando [OpenAI](https://openai.com/).

A API da OpenAI é alimentada por um conjunto diversificado de modelos com diferentes capacidades e faixas de preço. A seleção automática escolhe o melhor modelo disponível, mas você pode querer escolher um modelo específico que atenda às suas necessidades.

Automatic and predefined model selection queries the service model-listing
endpoint. Automatic selection prefers current general-purpose models that
balance translation quality, response time, and price, using older GPT models
only as compatibility fallbacks. Choose Custom model when using an
OpenAI-compatible gateway that does not provide model discovery; Weblate sends
the configured model identifier directly to the chat completions endpoint.

Utilize os campos de persona e estilo para ajustar ainda mais as traduções. Eles serão usados em um prompt para a OpenAI e permitirão alterar o estilo das traduções.

O serviço usa automaticamente o [Glossário](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary), consulte [Glossaries in translation services](https://docs.weblate.org/pt-br/weblate-2026.11.1/user/glossary.md#glossary-mt).

#### Versionchanged
Alterado na versão 5.7: Foi adicionado o suporte para modelo personalizado e URL de base.

#### SEE ALSO
* [OpenAI models](https://platform.openai.com/docs/models)
* [OpenAI API keys](https://platform.openai.com/api-keys)

<!-- AUTOGENERATED START: sap-translation-hub -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-sap-translation-hub"></a>

## SAP Translation Hub

* **ID do serviço:**
  `sap-translation-hub`
* **Maximum score:**
  100
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte    | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|----------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                 |                                                                                                                                                                                        |
  | `key`               | Chave da API               |                                                                                                                                                                                        |
  | `username`          | Nome de usuário SAP        |                                                                                                                                                                                        |
  | `password`          | Senha SAP                  |                                                                                                                                                                                        |
  | `enable_mt`         | Ativar tradução automática |                                                                                                                                                                                        |
  | `domain`            | Domínio da tradução        | A identificação de um domínio de tradução, por exemplo, BC. Se você não especificar um domínio, o método procura por traduções em todos os domínios disponíveis.                       |

<!-- AUTOGENERATED END: sap-translation-hub -->

Serviço de tradução automática fornecido pela SAP.

Você precisa ter uma conta SAP (e o SAP Translation Hub habilitado na SAP Cloud Platform) para usar este serviço.

Você também pode configurar se deseja utilizar serviços de tradução automática, além do base de dados de termos.

#### NOTE
Para acessar a API Sandbox, você precisa definir `url` e `key`.

Para acessar a API produtiva, você precisa definir `url`, `username` e `password`.

#### SEE ALSO
* [Saiba mais sobre SAP Translation Hub](https://help.sap.com/docs/translation-hub/sap-translation-hub/what-is-sap-translation-hub)
* [SAP Translation Hub API](https://api.sap.com/api/translationhub/overview)

<!-- AUTOGENERATED START: systran -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-systran"></a>

## Systran

* **ID do serviço:**
  `systran`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: systran -->

Serviço de tradução automática fornecido pela Systran.

Este serviço usa uma API e você precisa obter a chave dessa API em <[https://translate.systran.net/en/account](https://translate.systran.net/en/account)>.

<!-- AUTOGENERATED START: tmserver -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-tmserver"></a>

## tmserver

* **ID do serviço:**
  `tmserver`
* **Maximum score:**
  100
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `url`               | URL da API                |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: tmserver -->

You can run your own translation memory server by using a tmserver protocol.

* The original **tmserver** was bundled with the translate-toolkit.
* amaGama server is an enhanced version of tmserver.

#### NOTE
There currently does not seem to be a maintained server for this.

<!-- AUTOGENERATED START: weblate -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-weblate"></a>

## Weblate

* **ID do serviço:**
  `weblate`
* **Maximum score:**
  100
* **Configuração:**
  Este serviço não tem configuração.

<!-- AUTOGENERATED END: weblate -->

O serviço de tradução automática do Weblate pode fornecer traduções com base nas correspondências exatas de um texto nos textos existentes atualmente em Traduzido, Aprovado ou Somente leitura [states](https://docs.weblate.org/pt-br/weblate-2026.11.1/workflows.md#states) dentro do Weblate.

<!-- AUTOGENERATED START: weblate-translation-memory -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-weblate-translation-memory"></a>

## Weblate Translation Memory

* **ID do serviço:**
  `weblate-translation-memory`
* **Maximum score:**
  100
* **Configuração:**
  Este serviço não tem configuração.

<!-- AUTOGENERATED END: weblate-translation-memory -->

Usar [Memória de tradução](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/memory.md#translation-memory) como um serviço de tradução automática. Qualquer texto que tenha sido traduzido anteriormente (ou carregado na memória de tradução) pode ser traduzido dessa forma. Essa fonte de sugestão funciona com correspondência difusa.

#### NOTE
A recriação de [Memória de tradução](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/memory.md#translation-memory) reduz os recursos dessa fonte de TM.

<!-- AUTOGENERATED START: yandex -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-yandex"></a>

## Yandex

* **ID do serviço:**
  `yandex`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: yandex -->

Serviço de memória de tradução fornecido pela Yandex.

Este serviço usa uma API de tradução, e você precisa obter uma chave de API da Yandex.

#### SEE ALSO
* [Yandex Translate API](https://yandex.com/dev/translate/)

<!-- AUTOGENERATED START: yandex-v2 -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-yandex-v2"></a>

## Yandex v2

#### Versionadded
Adicionado na versão 5.1.

* **ID do serviço:**
  `yandex-v2`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | Chave da API              |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: yandex-v2 -->

Serviço de memória de tradução fornecido pela Yandex.

Este serviço usa uma API de tradução, e você precisa obter uma chave de API da Yandex Cloud.

#### SEE ALSO
* [Yandex Translate API v2](https://aistudio.yandex.ru/docs/en/translate/api-ref/authentication.html)

<!-- AUTOGENERATED START: youdao-zhiyun -->
<!-- This section is automatically generated by `./manage.py list_machinery`. Do not edit manually. -->

<a id="mt-youdao-zhiyun"></a>

## Youdao Zhiyun

* **ID do serviço:**
  `youdao-zhiyun`
* **Maximum score:**
  90
* **Configuração:**
  | `source_language`   | Seleção do idioma fonte   | Escolhas disponíveis:<br/><br/>`auto` – Seleção automática<br/><br/>`fonte` – Idioma fonte do componente<br/><br/>`secundário` – Idioma secundário definido no projeto ou componente   |
  |---------------------|---------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
  | `key`               | ID do cliente             |                                                                                                                                                                                        |
  | `secret`            | Chave secreta             |                                                                                                                                                                                        |

<!-- AUTOGENERATED END: youdao-zhiyun -->

Serviço de tradução automática fornecido pela Youdao.

Este serviço usa uma API e você precisa obter um ID e uma chave de API do Youdao.

#### SEE ALSO
[Youdao Zhiyun Serviço de Tradução de Linguagem Natural](https://ai.youdao.com/product-fanyi-text.s)

<a id="custom-machinery"></a>

## Tradução automática personalizada

You can also implement your own machine translation services using a few lines
of Python code. Place the code in a module Weblate can import (see
[Criando um módulo Python](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/customize.md#custom-module) or [Customizing code](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/install/docker.md#docker-python-override)) and add fully qualified
class name to [`WEBLATE_MACHINERY`](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/config.md#std-setting-WEBLATE_MACHINERY).

<a id="machinery-rate-limit-window"></a>

The `rate_limit_window` service class attribute controls the cooldown after
Weblate detects rate limiting or certain service failures. Its default is
1800 seconds. When a service returns a retry delay, Weblate uses it instead:
`retry-after-ms` takes precedence over `Retry-After` (seconds or an HTTP
date), followed by Google `RetryInfo` details. Invalid delays are ignored.
Valid delays can be shorter or longer than the service default.

Services with documented short-term throttling can override the default;
for example, add `rate_limit_window = 60` to your service class to retry after
one minute. Translation and rephrasing use the same window with separate
cooldown state.

Built-in services use a 60-second cooldown for Alibaba, Amazon Translate,
Anthropic, Baidu, Google Cloud Translation Basic and Advanced, LibreTranslate,
Mistral, OpenAI, and Azure OpenAI. Other services retain the default.

Cooldown expiry permits another request; it does not guarantee that a daily
or billing quota has reset. The window also applies to custom endpoints
configured for a service. Existing cached cooldowns expire at their original
time.

```python
"""
Machine translation example.

This example uses fictional http://example.com/ service to translate the
strings.
"""

from __future__ import annotations

from typing import TYPE_CHECKING

from weblate.machinery.base import MACHINERY_DEFAULT_THRESHOLD, MachineTranslation

if TYPE_CHECKING:
    from weblate.auth.models import User
    from weblate.machinery.base import DownloadTranslations
    from weblate.trans.models import Unit


class SampleTranslation(MachineTranslation):
    """Sample machine translation interface."""

    name = "Sample"

    def download_languages(self) -> list[str]:
        """Return list of languages your machine translation supports."""
        response = self.request("get", "http://example.com/languages")
        return response.json()["languages"]

    def download_translations(
        self,
        source_language: str,
        target_language: str,
        text: str,
        unit: Unit | None,
        user: User | None,
        threshold: int = MACHINERY_DEFAULT_THRESHOLD,
    ) -> DownloadTranslations:
        """Return tuple with translations."""
        response = self.request(
            "get",
            "http://example.com/translate",
            params={
                "source_language": source_language,
                "target_language": target_language,
                "text": text,
            },
        )

        for translation in response.json()["translations"]:
            yield {
                "text": translation,
                "quality": 100,
                "service": self.name,
                "source": text,
            }
```

#### SEE ALSO
* [Custom quality checks, add-ons, translation services and auto-fixes](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/customize.md#custom-modules)
* [Criando um módulo Python](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/customize.md#custom-module)
* [Customizing code](https://docs.weblate.org/pt-br/weblate-2026.11.1/admin/install/docker.md#docker-python-override)
