Serveis de traducció¶
Canviat a la versió 4.13: Abans de Weblate 4.13, els serveis es configuraven a la Configuration.
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 Interfície de gestió. Workspace administrators can configure installations for their workspace, and project administrators can configure them for a project:
Nota
Estan subjectes a les seves condicions d’ús, així que assegureu-vos que podeu utilitzar-los com vulgueu. Els serveis de tercers poden rebre cadenes d’origen, traduccions i context relacionat de Weblate.
Responses fetched through Weblate’s shared HTTP client are limited to 1 MiB of decoded data, including service validation and language discovery. Larger responses fail as download errors. See HTTP response limits.
The services translate from the source language as configured at Configuració dels components, see Llengua d’origen.
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. 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.
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 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 del Weblate.
Configured translation services provide suggestions in the Automatic suggestions tab of the translation editor and can be selected for Traducció automatitzada.
Vegeu també
Priority of machine translation and translation memory services¶
Weblate Memòria de traducció les coincidències amb una puntuació del 100% tenen prioritat sobre els serveis de traducció automàtica. Si es troba una coincidència del 100% a la memòria de traducció, no es realitza cap traducció automàtica. Si es produeixen diverses coincidències del 100%, s’utilitza la primera que retorna la base de dades.
Cada servei de traducció automàtica té una puntuació màxima predefinida que pot produir. L’ús dels serveis de traducció instal·lats s’ordena segons la seva màxima puntuació. Per a cada cadena amb una puntuació de traducció inferior al màxim del servei, se li demana que produeixi una traducció. S’accepten traduccions amb una puntuació superior a l’actual.
For explicit ordering and a separate score threshold for each service, use Apply translation memory before machine translation. This workflow completes one translation pass before selecting the strings for the next service.
Source strings for the machine translation¶
Afegit a la versió 5.11.
Es pot configurar l’origen de les cadenes d’origen per a tots els serveis de tercers. Això es pot utilitzar per ajustar el servei per obtenir els millors resultats. Les opcions següents estan disponibles:
- Automatic selection
Tria automàticament el millor idioma d’origen.
This is the default behavior.
- Component source language
Uses the component source language.
Aquest era el comportament abans del llançament 5.11.
- Secondary language defined in project or component
Use project Llengua secundària or component Llengua secundària.
Torna a la selecció automàtica de l’idioma d’origen si l’idioma secundari no està configurat.
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.
Alibaba¶
Afegit a la versió 5.3.
- Service ID:
alibaba- Maximum score:
80
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyIdentificador de la clau d’accés
secretSecret de la clau d’accés
regionIdentificador de la regió
Alibaba Translate és un servei de traducció automàtica neuronal per traduir text i admet fins a 214 parells d’idiomes.
Vegeu també
Anthropic¶
Afegit a la versió 5.16.
- Service ID:
anthropic- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentbase_urlURL de l’API antròpica
URL base de l’API d’Anthropic. Deixeu-lo en blanc per a utilitzar l’URL per defecte.
modelModel antròpic
Available choices:
claude-haiku-4-5– Claude Haiku 4.5claude-sonnet-5– Claude Sonnet 5claude-opus-5– Claude Opus 5claude-fable-5-1– Claude Fable 5.1claude-opus-4-8– Claude Opus 4.8claude-fable-5– Claude Fable 5custom– Custom modelpersonaRol del traductor
Descriviu el rol o l’expertesa del traductor. Per exemple, «Ets un traductor mèdic experimentat».
styleEstil de la traducció
Descriviu l’estil de traducció desitjat. Per exemple, «Utilitza llenguatge informal».
language_instructionsInstruccions específiques de la llengua
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.»}
keyClau de l’API
custom_modelNom del model personalitzat
Required when ‘Custom model’ is selected. Enter the model identifier used by the API.
max_tokensMàxim fitxes
Nombre màxim de segments textuals a la resposta generada.
Performs translation using Anthropic’s Claude models.
L’API Anthropic proporciona accés a la família de models Claude, coneguts pel seu fort raonament i capacitats de llenguatge. Necessites una clau API d’Anthropic per utilitzar aquest servei.
The model choices favor current generally available Claude models. Previously offered models remain selectable while Anthropic continues to support them.
Utilitzeu camps de persona i estil per afinar encara més les traduccions. S’utilitzaran en una indicació per a Claude i us permetran canviar l’estil de les traduccions.
El servei utilitza automàticament Glossari, vegeu Glossaries in translation services.
Vegeu també
Apertium APy¶
- Service ID:
apertium-apy- Maximum score:
88
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
Una plataforma de traducció automàtica de programari lliure que ofereix traduccions a un conjunt limitat d’idiomes.
La manera recomanada d’utilitzar Apertium és executar el vostre propi servidor Apertium-APy.
Vegeu també
Amazon Translate¶
- Service ID:
aws- Maximum score:
88
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyIdentificador de la clau d’accés
secretClau secreta de l’API
regionNom de la regió
formalityFormalitat
Available choices:
empty value – Default
FORMAL– FormalINFORMAL– InformalbrevityBrevity
Prefereix les traduccions curtes si és admès.
Available choices:
empty value – Default
ON– EnabledprofanityVulgaritat
Emmascara les paraules vulgars al text traduït.
Available choices:
empty value – Default
MASK– Mask profanity
Amazon Translate és un servei de traducció automàtica neuronal per traduir text a i des de l’anglès a través d’una àmplia gamma d’idiomes compatibles. El servei requereix la política gestionada TranslateFullAccess.
El servei utilitza automàticament Glossari, vegeu Glossaries in translation services.
Azure OpenAI¶
Afegit a la versió 5.8.
- Service ID:
azure-openai- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentbase_urlURL de l’API
modelModel LLM
personaRol del traductor
Descriviu el rol o l’expertesa del traductor. Per exemple, «Ets un traductor mèdic experimentat».
styleEstil de la traducció
Descriviu l’estil de traducció desitjat. Per exemple, «Utilitza llenguatge informal».
language_instructionsInstruccions específiques de la llengua
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.»}
keyClau de l’API
azure_endpointURL de l’extrem d’Azure OpenAI
URL del punt final de la instància, p. ex.: https://la-meva-instancia.openai.azure.com.
deploymentDesplegament d’Azure OpenAI
Nom únic de desplegament del model.
Performs translation using OpenAI hosted on Azure.
Vegeu també
Baidu¶
- Service ID:
baidu- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyIdentificador del client
secretSecret del client
Servei de traducció automàtica proporcionat per Baidu.
Aquest servei utilitza una API i cal obtenir un identificador i una clau d’API de Baidu per utilitzar-lo.
Vegeu també
CyrTranslit¶
Afegit a la versió 5.7.
- Service ID:
cyrtranslit- Maximum score:
100
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or component
Machine translation service using the Cyrtranslit library.
Aquest servei converteix el text entre escriptures ciríl·liques i llatines per als idiomes que tenen ambdues escriptures.
Vegeu també
DeepL¶
- Service ID:
deepl- Maximum score:
91
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
keyClau de l’API
formalityFormalitat
Utilitza la formalitat especificada si la llengua no està especificada com a (in)formal
contextContext de la traducció
Descriviu el context de la traducció per a millorar la precisió de la traducció.
next_genUtilitzeu el model de nova generació
Prefereix un LLM de nova generació en lloc del model clàssic de traducció automàtica.
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.
Canviat a la versió 2026.9.1: Support for explicitly configured DeepL API v1 endpoints has been restored.
https://api.deepl.com/(default in Weblate)Està pensat per a l’ús de l’API al pla de pagament i la subscripció es basa en l’ús.
https://api-free.deepl.com/Està pensat per a l’ús de l’API al pla gratuït i la subscripció es basa en l’ús.
Weblate admet la formalitat DeepL, en triarà una que coincideixi en funció de l’idioma (per exemple, hi ha de@formal i de@informal).
El context de traducció es pot especificar opcionalment per millorar la qualitat de les traduccions. Llegiu-ne més a Documentació del context de traducció DeepL.
The service automatically uses Glossari, see Glossaries in translation services. Glossary integration is not available with API v1.
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.
Vegeu també
eTranslation¶
- Service ID:
etranslation- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyNom de l’aplicació
secretContrasenya
domainDomini de llengua per defecte
Available choices:
GEN– General Text (GEN)SPD– EU Formal Language (SPD)ECB– Finance (ECB)ECJ– European Court of Justice (ECJ)IPO– EIP Case Law (Intellectual Property) (IPO)_OTHER– Other domain codeother_domainUn altre codi de domini
Enter a domain code from eTranslation when selecting Other domain code.
component_domainsDominis de llengua del component
JSON object mapping full component paths to domain codes, for example {«my-project/privacy-policy»: «SPD»}.
Register an application with the European Commission to obtain its application
name and password, then configure 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:
{"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 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.
Glosbe¶
- Service ID:
glosbe- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or component
Diccionari gratuït i memòria de traducció per a gairebé totes les llengües vives.
L’API és d’ús gratuït, però l’ús de les traduccions està subjecte a la llicència de la font de dades utilitzada. Hi ha un límit de trucades que es poden fer des d’una IP en un període de temps determinat, per evitar abús.
Vegeu també
Google Cloud Translation Basic¶
- Service ID:
google-translate- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyClau de l’API
Machine translation service provided by the Google Cloud services.
Aquest servei utilitza l’API de traducció de Google v2 i cal que obtingueu una clau d’API i activeu la facturació a la consola de l’API de Google.
Vegeu també
Google Cloud Translation Advanced¶
- Service ID:
google-translate-api-v3- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentcredentialsInformació del compte de servei del Traductor de Google
Introduïu una clau JSON per al compte de servei.
projectProjecte del Traductor de Google
Introduïu l’identificador numèric o alfanumèric del vostre projecte de Google Cloud.
locationUbicació del Traductor de Google
Seleccioneu una regió de Google Cloud Translation que s’utilitzi per al projecte de Google Cloud o que sigui més propera a vós.
bucket_nameNom de Google Storage Bucket
Introduïu el nom del dipòsit de Google Cloud Storage que s’utilitza per emmagatzemar els fitxers de glossari.
Machine translation service provided by the Google Cloud services.
Aquest servei utilitza l’API de traducció de Google v3 i necessiteu credencials en format JSON per accedir-hi.
Per utilitzar aquest servei, primer heu de seguir els passos següents:
Opcionalment, podeu configurar el servei perquè utilitzi Glossari configurant un Bucket:
IBM Watson Language Translator¶
S’ha eliminat a la versió 5.13.1: Aquest servei va ser retirat pel venedor a partir del 10 de desembre de 2024.
LibreTranslate¶
Afegit a la versió 4.7.1.
- Service ID:
libretranslate- Maximum score:
89
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
keyClau de l’API
LibreTranslate és un servei gratuït i de codi obert per a traduccions automàtices. La instància pública requereix una clau d’API, però LibreTranslate es pot allotjar automàticament i hi ha diversos miralls disponibles per utilitzar l’API de forma gratuïta.
https://libretranslate.com/(instància pública oficial)Requereix una clau API per utilitzar-la fora del lloc web.
LTEngine¶
Afegit a la versió 5.17.1.
- Service ID:
ltengine- Maximum score:
89
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
keyClau de l’API
LTEngine proporciona una API local compatible amb LibreTranslate recolzada per grans models d’idiomes. Per a moltes instal·lacions de Weblate, els serveis de LLM natius com ara Ollama poden ser més adequats perquè Weblate pot enviar context de traducció directament al model. Utilitzeu LTEngine quan vulgueu específicament el seu motor de traducció local o futures millores de traducció LTEngine.
Azure AI Translator¶
- Service ID:
microsoft-translator- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyClau de l’API
base_urlURL base de l’aplicació
Available choices:
api.cognitive.microsofttranslator.com– Global (no regional)api-apc.cognitive.microsofttranslator.com– Àsia Pacíficapi-eur.cognitive.microsofttranslator.com– Europaapi-nam.cognitive.microsofttranslator.com– Amèrica del Nordapi.translator.azure.cn– Xinaapi.cognitive.microsofttranslator.us: núvol Azure del govern dels EUAendpoint_urlURL del servei d’autenticació
Les regions o el multiservei es poden especificar fent servir el camp de regió de sota.
Available choices:
api.cognitive.microsoft.com– Globalapi.cognitive.azure.cn– Xinaapi.cognitive.microsoft.us: núvol Azure del govern dels EUAregionRegió del servei d’autenticació
categoryCategoria
Especifiqueu un identificador de categoria del sistema personalitzat per a utilitzar-lo en lloc del general.
Machine translation service provided by Microsoft in Azure portal as one of Cognitive Services.
Weblate implementa Translator API V3.
El servei utilitza automàticament Glossari mitjançant el diccionari dinàmic, vegeu Glossaries in translation services.
Translator Text API V2¶
La clau que feu servir amb Translator API V2 es pot utilitzar amb l’API 3.
Translator Text API V3¶
Cal registrar-se a Azure Portal i utilitzar la clau que hi obteniu. Amb les noves claus d’Azure, també heu d’establir region a la configuració regional del vostre servei.
També podeu especificar una categoria personalitzada per utilitzar el traductor personalitzat.
Suggeriment
Per a Azure Xina, utilitzeu el vostre punt final des de l’Azure Portal.
Mistral¶
Afegit a la versió 2026.7.
- Service ID:
mistral- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentbase_urlURL base de l’API de Mistral
URL base de l’API de Mistral, si és diferent de l’URL per defecte de Mistral
modelModel de Mistral
With ‘Automatic selection’, Weblate selects the first model available through the API from its predefined preference list.
Available choices:
auto– Automatic selectionmistral-small-latest– Mistral Small 4ministral-14b-latest– Ministral 3 14Bministral-8b-latest– Ministral 3 8Bministral-3b-latest– Ministral 3 3Bmistral-large-latest– Mistral Large 3mistral-medium-latest– Mistral Medium 3.5custom– Custom modelpersonaRol del traductor
Descriviu el rol o l’expertesa del traductor. Per exemple, «Ets un traductor mèdic experimentat».
styleEstil de la traducció
Descriviu l’estil de traducció desitjat. Per exemple, «Utilitza llenguatge informal».
language_instructionsInstruccions específiques de la llengua
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.»}
keyClau de l’API
custom_modelNom del model personalitzat
Required when ‘Custom model’ is selected. Enter the model identifier used by the API.
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.
ModernMT¶
Afegit a la versió 4.2.
- Service ID:
modernmt- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
keyClau de l’API
context_vectorVector del context
Llista d’identificadors de memòria:pes separats per comes. p. ex.: 1234:0.123,4567:0.456
El servei utilitza automàticament Glossari, vegeu Glossaries in translation services.
Vegeu també
MyMemory¶
- Service ID:
mymemory- Maximum score:
100
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentemailAdreça electrònica de contacte
usernameNom d’usuari
keyClau de l’API
Gran memòria de traducció amb traducció automàtica.
Actualment, l’ús gratuït i anònim està limitat a 100 sol·licituds/dia, o a 1000 sol·licituds/dia quan proporcioneu una adreça de correu electrònic de contacte a correu electrònic. També pots demanar-los més.
Vegeu també
Netease Sight¶
- Service ID:
netease-sight- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyIdentificador del client
secretSecret del client
Machine translation service provided by NetEase.
Aquest servei utilitza una API i cal obtenir la clau i el secret de NetEase.
Vegeu també
Ollama¶
Afegit a la versió 5.15.
- Service ID:
ollama- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentbase_urlURL de l’API
Base URL of the Ollama API, reachable from the Weblate server. The default is http://localhost:11434; localhost refers to the environment where Weblate runs.
modelModel Ollama
Nom del model descrit al catàleg d’Ollama.
personaRol del traductor
Descriviu el rol o l’expertesa del traductor. Per exemple, «Ets un traductor mèdic experimentat».
styleEstil de la traducció
Descriviu l’estil de traducció desitjat. Per exemple, «Utilitza llenguatge informal».
language_instructionsInstruccions específiques de la llengua
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.»}
Performs translation using Ollama models.
L’API d’Ollama permet l’ús de models de codi obert per a traduccions instal·lades localment o amb accés remot mitjançant el servei Ollama. Tingueu en compte que abans de configurar els vostres models, hauríeu de tenir Ollama instal·lat i descarregat els models que voleu utilitzar.
Utilitzeu camps de persona i estil per afinar encara més les traduccions. S’utilitzaran en una indicació per a Ollama i us permetran canviar l’estil de les traduccions.
El servei utilitza automàticament Glossari, vegeu Glossaries in translation services.
Vegeu també
OpenAI¶
Afegit a la versió 5.3.
- Service ID:
openai- Maximum score:
90
- Advanced features:
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentbase_urlURL base de l’API OpenAI
URL base de l’API d’OpenAI, si és diferent de l’URL per defecte d’OpenAI
modelModel d’OpenAI
With ‘Automatic selection’, Weblate selects the first model available through the API from its predefined preference list.
Available choices:
auto– Automatic selectiongpt-5.6-luna– GPT-5.6 Lunagpt-5.4-mini– GPT-5.4 minigpt-5-mini– GPT-5 minigpt-5.4-nano– GPT-5.4 nanogpt-5-nano– GPT-5 nanogpt-5.6-terra– GPT-5.6 Terragpt-5.4– GPT-5.4gpt-5– GPT-5gpt-5.6– GPT-5.6 Solgpt-5.5– GPT-5.5gpt-4.1-mini– GPT-4.1 minigpt-4o-mini– GPT-4o minigpt-4.1-nano– GPT-4.1 nanogpt-4.1– GPT-4.1gpt-4o– GPT-4ogpt-4-turbo– GPT-4 Turbogpt-4– GPT-4gpt-3.5-turbo– GPT-3.5 Turbocustom– Custom modelpersonaRol del traductor
Descriviu el rol o l’expertesa del traductor. Per exemple, «Ets un traductor mèdic experimentat».
styleEstil de la traducció
Descriviu l’estil de traducció desitjat. Per exemple, «Utilitza llenguatge informal».
language_instructionsInstruccions específiques de la llengua
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.»}
keyClau de l’API
custom_modelNom del model personalitzat
Required when ‘Custom model’ is selected. Enter the model identifier used by the API.
Performs translation using OpenAI.
L’API OpenAI funciona amb un conjunt divers de models amb diferents capacitats i preus. La selecció automàtica tria el millor model disponible, però és possible que vulgueu triar un model específic que s’adapti a les vostres necessitats.
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.
Utilitzeu camps de persona i estil per afinar encara més les traduccions. Aquests s’utilitzaran en un missatge d’OpenAI i us permetran canviar l’estil de les traduccions.
El servei utilitza automàticament Glossari, vegeu Glossaries in translation services.
Canviat a la versió 5.7: S’ha afegit suport per al model personalitzat i l’URL base.
Vegeu també
SAP Translation Hub¶
- Service ID:
sap-translation-hub- Maximum score:
100
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
keyClau de l’API
usernameNom d’usuari del SAP
passwordContrasenya del SAP
enable_mtActiva la traducció automàtica
domainDomini de la traducció
L’identificador d’un domini de traducció, per exemple, BC. Si no especifiqueu un domini, el mètode cerca traduccions en tots els dominis disponibles.
Servei de traducció automàtica de SAP.
Heu de tenir un compte SAP (i el SAP Translation Hub habilitat a la plataforma SAP Cloud) per utilitzar aquest servei.
També podeu configurar si voleu utilitzar també els serveis de traducció automàtica, a més del terme base de dades.
Nota
Per accedir a l’API Sandbox, heu d’establir url i key.
Per accedir a l’API productiva, heu d’establir url, nom d'usuari i contrasenya.
Vegeu també
Systran¶
- Service ID:
systran- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyClau de l’API
Machine translation service provided by Systran.
Aquest servei utilitza una API i cal obtenir la clau de l’API a <https://translate.systran.net/en/account>.
tmserver¶
- Service ID:
tmserver- Maximum score:
100
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componenturlURL de l’API
Podeu executar el vostre propi servidor de memòria de traducció mitjançant un protocol tmserver.
El tmserver original es va incloure amb el kit d’eines de traducció.
amaGama server és una versió millorada de tmserver.
Nota
Actualment no sembla que hi hagi cap servidor mantingut per a això.
Weblate¶
- Service ID:
weblate- Maximum score:
100
- Configuration:
This service has no configuration.
El servei de traducció automàtica de Weblate pot proporcionar traduccions basades en les coincidències exactes d’una cadena a les cadenes existents en un Traduït, Aprovat, o Només lectura states dins de Weblate.
Weblate Memòria de traducció¶
- Service ID:
weblate-translation-memory- Maximum score:
100
- Configuration:
This service has no configuration.
Utilitzeu Memòria de Traducció com a servei de traducció automàtica. Qualsevol cadena que s’hagi traduït abans (o penjada a la memòria de traducció) es pot traduir d’aquesta manera. Aquesta font de suggeriments funciona amb concordança difusa.
Nota
Recrear Memòria de Traducció redueix les capacitats d’aquesta font de MT.
Yandex¶
- Service ID:
yandex- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyClau de l’API
Servei de traducció automàtica proporcionat per Yandex.
Aquest servei utilitza una API de traducció i cal obtenir una clau d’API de Yandex.
Vegeu també
Yandex v2¶
Afegit a la versió 5.1.
- Service ID:
yandex-v2- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyClau de l’API
Servei de traducció automàtica proporcionat per Yandex.
Aquest servei utilitza una API de traducció i cal obtenir una clau d’API de Yandex Cloud.
Vegeu també
Youdao Zhiyun¶
- Service ID:
youdao-zhiyun- Maximum score:
90
- Configuration:
source_languageSelecció de la llengua d’origen
Available choices:
auto– Automatic selectionsource– Component source languagesecondary– Secondary language defined in project or componentkeyIdentificador del client
secretSecret del client
Servei de traducció automàtica ofert per Youdao.
Aquest servei utilitza una API i cal obtenir un identificador i una clau d’API de Youdao.
Traducció automàtica personalitzada¶
També podeu implementar els vostres propis serveis de traducció automàtica mitjançant unes poques línies de codi Python. Col·loqueu el codi en un mòdul que Weblate pugui importar (vegeu Creació d’un mòdul Python o Customizing code) i afegiu un nom de classe totalment qualificat a WEBLATE_MACHINERY.
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.
"""
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,
}