i18n-tools
Version française (lecteur français et francophones)
English reader and ROW
Description
The i18n-tools project aims to simplify and modernize translation management in Python applications. It introduces a new flexible translation file format, independent of any dominant language, designed to coexist with existing standards such as gettext (.po/.mo files) and i18next.
The goal is to provide a modular, adaptable, and language-agnostic solution, with native support for translation variants, multiple plurals, and transparent language fallback management.
Roadmap
The project follows a progression by deliverable value. Each version is independently usable.
| Milestone | Description | Status |
|---|---|---|
| v0.1.x | Foundational cleanup — fix blocking bugs | ✅ Delivered |
| v0.2.x | Loaders ↔ models bridge — Book.load(), .i18t extension, partial Config → Repository |
✅ Delivered |
| v0.3.x | Complete model hierarchy — Corpus, FallbackBook, Encyclopaedia, exceptions |
✅ Delivered |
| v0.4.x | Quality and coverage — error handling, circular imports, Sphinx/Furo init | ✅ Delivered |
| v0.5.0 | Architecture & layering hardening — models/loaders boundary sealed, Config → Repository completed |
✅ Delivered |
| v0.6.0 | CI/CD & repository hygiene — uv/tox-uv, basedpyright, .codecov.yml |
✅ Delivered |
| v0.7.0 | Test coverage & repository hygiene — .codecov.yml components, coverage-gate, issue/PR templates, Node.js 24 CI migration. No separate tag — merged into v0.8.0 (calendar reagencement) |
✅ Delivered |
| v0.8.0 | Orchestration — core.py high-level entry point, fallback.py language chain resolution |
✅ Delivered |
| v0.9.0 | Formatting & CLI — formatter.py complete with PluralRule, CLI/REPL |
✅ Delivered |
| v0.10.0 | Reviewing architecture & models — architectural review, optional api extra |
✅ Delivered |
| v0.11.0 | Format on disk — .i18t format 1.0.0 frozen and specified, JSON Schema, loaders on the new format |
✅ Delivered |
| v0.12.0 | Message and Book on the stored structure — the objects read the keys of the file; package renamed pyi18t_tools |
🔵 Planned |
| v0.13.0 | Tree and procedures — Corpus and Encyclopaedia in one tree, fallback and checks on its paths |
🔵 Planned |
| v0.14.0 | CLI and backups — the CLI through core.py, compressed backups and reconstruction |
🔵 Planned |
| v0.15.0 | Integrity and audit — audit before completion, checks shared out between the levels | 🔵 Planned |
| v0.16.0 | Configuration, repositories and external validation — several repositories, layered checks | 🔵 Planned |
| v0.17.0 | Comprehensive documentation — concepts, guides, reference, project | 🔵 Planned |
| v0.18.0 | End-to-end integration — integration suite, blocking coverage threshold | 🔵 Planned |
| v0.19.0 | Release candidate — review of the API and the format, versioned documentation | 🔵 Planned |
| v0.20.0 | First stable stage — public API frozen, base of the Rust, Go and TypeScript ports | 🔵 Planned |
| v0.21.0 – v0.30.0 | gettext interoperability — .po/.pot/.mo import/export via Babel, round trip |
🔵 Horizon |
| v0.31.0 – v0.40.0 | i18next interoperability — import/export, gettext ↔ i18next through the model | 🔵 Horizon |
Features
| Feature | v0.2.x | v0.8.0 | v0.9.0 | v0.20.0 | v0.21–v0.30 | v0.31–v0.40 |
|---|---|---|---|---|---|---|
Native .i18t format (JSON/YAML) |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Language-neutral identifiers | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Variants and multiple plurals | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Load a Book from .i18t |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
Save a Book to .i18t |
✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Complete hierarchy (Corpus, Encyclopaedia) | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Language fallback management | ✅ | ✅ | ✅ | ✅ | ✅ | ✅ |
High-level orchestration (core.py: load/save a Book or Corpus, synchronize a repository) |
❌ | ✅ | ✅ | ✅ | ✅ | ✅ |
| Interpolation and active plural rules | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
| CLI/REPL interface | ❌ | ❌ | ✅ | ✅ | ✅ | ✅ |
.po/.mo import/export (Babel/gettext) |
❌ | ❌ | ❌ | ❌ | ✅ | ✅ |
| i18next conversion | ❌ | ❌ | ❌ | ❌ | ❌ | ✅ |
Installation
pip install pyi18t-tools
This installs everything needed to load, format, and save .i18t files:
Message, Book, Corpus, Encyclopaedia, formatter.publish(), and
the CLI (validate/info/sync/repl) with a .yaml/.json settings
file.
Author and translator management (Config/Repository author/translator
methods, translator API URL validation, or a .toml settings file)
additionally requires the api extra:
pip install pyi18t-tools[api]
Calling one of these methods without the extra installed raises a clear
ModuleNotFoundError naming the missing package and this install command,
rather than a bare import failure.
Why This Project?
- Flexibility: a format designed to adapt to all translation needs, without linguistic constraints — no language is dominant.
- Expressiveness: native support for contextual variants (gender, register, context) and business plurals beyond CLDR rules.
- Extensibility: layered architecture enabling conversion to existing standards (gettext, i18next) without modifying the models.
- Interoperability: bridge with the Babel ecosystem for progressive compatibility with existing tools.
License
See the license.md file.
Contact
For any questions or contributions, open a GitHub issue.
Metadata
Release files for pyi18t-tools 0.11.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyi18t_tools-0.11.0.tar.gz | 124.3 kB | Without provenance | Details for pyi18t_tools-0.11.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pyi18t_tools-0.11.0-py3-none-any.whl | Python 3 | none | any | Details for pyi18t_tools-0.11.0-py3-none-any.whl |
Total release size: 259.2 kB
Release files / pyi18t_tools-0.11.0.tar.gz
| Download URL | pyi18t_tools-0.11.0.tar.gz |
|---|---|
| Size | 124.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f0c8786e3274861d3913a016b458aa6de1fcc4ab428836ab8b71d11b803e9f7e
|
|
BLAKE2b-256 checksum How to use checksums |
225c8fc8527a767a63cd092bd81f79f4ad714568bc8c4d4712e3388cd5f452e3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Release files / pyi18t_tools-0.11.0-py3-none-any.whl
| Download URL | pyi18t_tools-0.11.0-py3-none-any.whl |
|---|---|
| Size | 134.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7098c5693a6c002a5d0756024d4de84c4b8fcf7f9f5483c8810a21d1ca4ad367
|
|
BLAKE2b-256 checksum How to use checksums |
115068f9feb9dd21b63355498b313a40208a443858a62c12966711aa195b0f58
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Security for pyi18t-tools 0.11.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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.