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 LGPL 3.0 or later.

Metadata

Release files for gettext-translator-azure 0.1.1

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.1
File Size Uploaded Provenance Actions
gettext_translator_azure-0.1.1.tar.gz 17.4 kB With provenance Details for gettext_translator_azure-0.1.1.tar.gz

Built distribution (wheel)

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

Total release size: 37.2 kB

Release files / gettext_translator_azure-0.1.1.tar.gz

Download URL gettext_translator_azure-0.1.1.tar.gz
Size 17.4 kB
Tags Source
SHA-256 checksum
How to use checksums
9f2c1f62b1ee2ff366dfd422703f89fb51067f2eaf8aae55466b7fc91853c558
BLAKE2b-256 checksum
How to use checksums
7f1425789fe2cef691fd610cff71849a750c513225678c13bd718cedcaf14f85
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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

Download URL gettext_translator_azure-0.1.1-py3-none-any.whl
Size 19.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a2358e332a5bde8ee06a3ad51fb99fbd8e233b58595ca49b8ed5ba7754f40fd3
BLAKE2b-256 checksum
How to use checksums
bf7d1e55f2ac5eab869ca0ee77ed86b4be9f786b6dff34e9b1959250ecf3b843
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

Security for gettext-translator-azure 0.1.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for gettext_translator_azure-0.1.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Oct 31, 2026.

Transparency log

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.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.1 This release

2 release files Full 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