Skip to main content

gettext-translator-azure

Azure AI Translator backend for gettext-translator.

Usage from gettext-translator

gettext-translator --backend azure --config azure-sample.yaml --src en --dst es_MX --po /path/to/example/messages.po

This command translates the messages.po file from English into Mexican Spanish (es_MX), using the provided Azure AI Translator key in the westus3 location. See the azure-sample.yaml configuration file for the example.

Configuration

  • apikey
    • your Azure translation API key.
    • Or, if you prefix the string with "env:", the value of the environment variable with the same name will be used. Example: apikey="env:MY_AZURE_API_KEY" and then in the shell export MY_AZURE_API_KEY="sk-...".
  • location the location of the translation service.
  • endpoint the endpoint of the translation service.

Installation

pip install "gettext-translator[azure]"

Notes

  • Plural forms: this backend translates the singular and the plural msgid separately and uses the plural translation for every form except the first one. That is right for languages with two plural forms; for languages with more (Russian, Polish, Arabic...) use an LLM backend.
  • You can find information about Microsoft Azure AI Translator here.

License

Copyright (C) 2026 Rodolfo González González.

Licensed under GPL 3.0.

Metadata

Release files for gettext-translator-azure 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for gettext-translator-azure 0.1.0
File Size Uploaded Provenance
gettext_translator_azure-0.1.0.tar.gz 3.4 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for gettext-translator-azure 0.1.0
File Interpreter ABI Platform
gettext_translator_azure-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 7.9 kB

Release files / gettext_translator_azure-0.1.0.tar.gz

Download URL gettext_translator_azure-0.1.0.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
998a9e1e17fff6e10621d583daf014be1e1fef750dcfaa8f7466ac20cb34a7ed
BLAKE2b-256 checksum
How to use checksums
16084e89ff06cd3b4757499ab662e5153d69e9f1402cba7c3c9adc3feaf51177
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Release files / gettext_translator_azure-0.1.0-py3-none-any.whl

Download URL gettext_translator_azure-0.1.0-py3-none-any.whl
Size 4.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
22f3051ad6cb6d1285a193701c37989d13606209a5926a57bab660f96a0058e4
BLAKE2b-256 checksum
How to use checksums
7562a96e4cb77d8b8fc75748b744eb90a5bb0b28966a60203ecf6b18222fe92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.14.8

Security for gettext-translator-azure 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page