translate-toolkit
Tools and API for translation and localization engineering.
What it is and what it does
Translate Toolkit is a Python library and command-line suite for localization engineers to work with translation files. It handles format conversion (PO, XLIFF, properties, Qt .ts, TMX, TBX, CSV, and many others), quality assurance checks, terminology extraction, and translation memory operations. The core is a set of Python classes for reading and writing localization storage formats, plus scripts that wrap them for common workflows like converting OpenOffice GSI to PO, merging corrected translations, or extracting terminology from PO files.
The package is designed to reduce repetitive work in localization pipelines. It runs on modern Python versions (3.11 through 3.14) and depends on lxml for XML handling and unicode-segmentation-rs for language-aware text segmentation. Optional dependencies add support for specific formats (Markdown, YAML, iCalendar) and features (spellcheck, fuzzy matching). The toolkit is actively maintained, part of the Translate project, and widely used in localization workflows.
Use it for:
- Convert translation files between formats (e.g., PO to XLIFF, Qt .ts to PO) to work in standard translation tools.
- Run quality assurance checks on PO files to find pattern violations, terminology inconsistencies, or language-specific issues.
- Batch process localization files to count translatable strings, extract terminology, or segment translations for memory creation.
- Merge corrected translations from QA tools back into existing PO files without manual re-editing.
- Build custom localization workflows by importing Python classes to handle new formats or project-specific logic.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Translate Toolkit converts, validates, and manipulates localization files across formats like PO, XLIFF, properties, and many others, with command-line tools and Python APIs for format conversion and quality assurance.
Yes. Translate Toolkit is actively maintained, has no known vulnerabilities, low install friction, and is the standard choice for localization engineers needing format conversion and QA tooling. The GPL-3.0-or-later license is a hard constraint only if you need to distribute proprietary software; for internal use or open-source projects, it poses no barrier. Install it if you work with translation files or build localization pipelines.
Install
translate-toolkit on PyPI
pip
pip install translate-toolkituv
uv add translate-toolkitpoetry
poetry add translate-toolkitInstalling translate-toolkit
Before you install
Low install friction with a pure-wheel distribution. Active maintenance with a release 14 days ago and ongoing commits. Requires Python 3.11 or newer and two runtime dependencies (lxml and unicode-segmentation-rs); optional extras available for format-specific features.
License in practice
Released under GPL-3.0-or-later (copyleft). Any derivative work or distribution must also be open-source under a compatible license; proprietary projects using this toolkit must comply with GPL obligations or seek an alternative license.
Quickstart
pip install translate-toolkit
from translate.storage import po
store = po.pofile()
unit = store.addsourceunit('Hello')
unit.target = 'Hola'
store.savefile('output.po')
Requires Python 3.11 or newer. The lxml and unicode-segmentation-rs dependencies must be installed (included by default); some optional format support requires additional extras (e.g., pip install translate-toolkit[markdown,yaml]).
Verify before relying
- Whether the 40+ quality assurance checks mentioned in the description are all accessible via the pofilter command or require additional setup.
- Performance characteristics when processing very large localization files or batch conversions.
- Compatibility of optional extras (chardet, fluent, ical, ini, levenshtein, markdown, php, rc, spellcheck, subtitles, toml, yaml) with the current Python 3.11+ requirement.
Package facts
| License | GPL-3.0-or-later (copyleft) |
| Python support | supports the current Python release (>=3.11) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — lxml, unicode-segmentation-rs |
| Maintenance | actively maintained — 14 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 402,433/month — #6,919 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: translate_toolkit-3.19.17-py3-none-any.whl
Keywords: i18n, l10n, gettext, translate
Tags
More Python Modules packages
Converts domain names between Unicode and…
permissive · top 100 on PyPI
setuptoolsSetuptools is a Python build backend and…
permissive · top 100 on PyPI
PyYAMLPyYAML parses and emits YAML 1.1 data format,…
permissive · top 100 on PyPI
pydanticPydantic validates Python data structures…
permissive · top 100 on PyPI
annotated-typesProvides reusable metadata objects for use with…
permissive · top 100 on PyPI
typing-inspectionProvides runtime tools to inspect and…
permissive · top 100 on PyPI
edx-i18n-toolsCommand-line tool for extracting, compiling,…
permissive · top 15,000 on PyPI
polibpolib reads, writes, and manipulates gettext…
permissive · top 5,000 on PyPI
SmartlingApiSdkA Python SDK for interacting with Smartling's…
permissive · top 15,000 on PyPI
babelBabel provides internationalization (i18n) and…
permissive · top 1,000 on PyPI
wagtail-localizeWagtail Localize is a translation plugin for…
permissive · top 15,000 on PyPI
zope.i18nProvides internationalization and localization…
unclear · top 15,000 on PyPI
ResourceBundleResourceBundle manages internationalization and…
permissive · top 15,000 on PyPI
translation-finderDiscovers and identifies translation files in…
copyleft · top 15,000 on PyPI
fluent.syntaxParse, write, and transform Fluent localization…
permissive · top 15,000 on PyPI
python-lokalise-apiPython client library for the Lokalise API v2,…
permissive · top 15,000 on PyPI