python-i18n
Translation library for Python
Decision gist · record as of 2026-08-14
Yes, if you need straightforward Rails-style i18n for a Python project and can accept that the package is aging (last release 2020-08-26). It has no dependencies, installs easily, carries no known vulnerabilities, and is permissively licensed. However, verify Python support matches your target version, and consider whether the lack of recent maintenance poses a risk for your use case.AI-flagged interpretation of the facts on this page — verify before relying
Before you install
- Low install friction with no runtime dependencies.
- Maintenance is aging—last release was 2020-08-26, though the repository remains active with a recent commit in 2026-01-17.
License · maintenance · safety
MIT (permissive) — MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
last release 2020-08-26 (2179 days) · last repo commit 2026-01-17 · 246 stars
0 known vulnerabilities (OSV.dev, 2026-08-14) · 399,331 downloads/mo, #6,949 on PyPI
Alternatives
Verify before relying
pip install python-i18n
import i18n
i18n.add_translation('foo', 'bar')
i18n.t('foo') # bar
# Or load from files:
i18n.load_path.append('/path/to/translations')
i18n.t('foo.hi') # Hello world !- Whether the package supports Python 3 exclusively or maintains Python 2 compatibility as classifiers suggest
- Current test coverage and whether the build/coverage badges reflect the actual state of the codebase
What it is and what it does
python-i18n is a translation library that brings Rails-style internationalization to Python. It lets you manage translations for multiple languages in your application by loading them from YAML or JSON files, adding them programmatically, or both. The library handles common i18n tasks: substituting placeholders like %{name} into strings, choosing the right plural form based on a count, falling back to a default language when a translation is missing, and organizing translations into namespaces based on file and folder structure.
You set a locale, add or load translations, and call i18n.t() with a key to retrieve the translated string. It supports memoization to cache translations in memory after the first load, and optional configuration to skip locale root elements in JSON files. With no external runtime dependencies, it installs cleanly and works out of the box.
Use it for
- Build a web application that serves content in multiple languages by loading translations from YAML or JSON files organized by locale.
- Add placeholder and pluralization support to user-facing messages (e.g., 'You have %{count} new emails').
- Integrate translations into a Python microservice that reuses i18n JSON files from another project without modifying the file structure.
- Set up fallback locales so that missing translations in the user's preferred language automatically fall back to a default.
- Organize translations hierarchically using directory and file namespaces to keep large translation sets manageable.
Worth the install?
AI-flagged interpretation of the facts on this page. Verify before relying on it.
Yes, if you need straightforward Rails-style i18n for a Python project and can accept that the package is aging (last release 2020-08-26).
It has no dependencies, installs easily, carries no known vulnerabilities, and is permissively licensed. However, verify Python support matches your target version, and consider whether the lack of recent maintenance poses a risk for your use case.
Install
python-i18n on PyPI
Before you install
Low install friction with no runtime dependencies. Maintenance is aging—last release was 2020-08-26, though the repository remains active with a recent commit in 2026-01-17.
License in practice
MIT license is permissive; you may use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.
Quickstart
pip install python-i18n
import i18n
i18n.add_translation('foo', 'bar')
i18n.t('foo') # bar
# Or load from files:
i18n.load_path.append('/path/to/translations')
i18n.t('foo.hi') # Hello world !
Verify before relying
- Whether the package supports Python 3 exclusively or maintains Python 2 compatibility as classifiers suggest
- Current test coverage and whether the build/coverage badges reflect the actual state of the codebase
Package facts
| License | MIT permissive |
| Python support | Not specified |
| Install friction | Low. Pure-Python wheel |
| Runtime dependencies | None |
| Maintenance | Aging 2,179 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 399,331 / month, #6,949 on PyPI 30-day window, as of 2026-08-14 |
| Known vulnerabilities | None known OSV.dev, checked 2026-08-14 |
| Classifiers | Development Status :: 4 - BetaEnvironment :: Other EnvironmentIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseOperating System :: OS IndependentProgramming Language :: Python :: 2Programming Language :: Python :: 3Topic :: Software Development :: Libraries |
Evidence: python_i18n-0.3.9-py3-none-any.whl
Tags
Let your AI agent find packages like this
Example. Real query, live index.
You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.
wish › “pluralization and locale support”
- python-i18nProvides internationalization (i18n) functionality for Python…
- i18nicei18nice provides internationalization (i18n) functionality for Python…
- zope.i18nProvides internationalization and localization APIs for Python…
Give your agent the search over MCP, or paste the wish link into any chat.
More Libraries packages
urllib3 is an HTTP client library that provides thread-safe connection pooling, SSL/TLS verification, multipart file uploads, request retries, compression support, and proxy handling for Python applications.
Requests is a Python HTTP library that simplifies sending HTTP/1.1 requests with automatic handling of headers, authentication, cookies, and response parsing.
Pluggy provides a plugin system that lets you define hook specifications and register implementations to be called in sequence, enabling extensible Python applications without tight coupling.
Install it if you're building an extensible application or framework.
Provides parsing, arithmetic, and recurrence rule computation for dates and times, with timezone support and iCalendar RFC compliance.
Install it if you need to parse flexible date strings, compute relative dates, handle timezones, or work with recurrence rules—it's the de facto choice for these tasks.
Six provides utility functions to write Python code that runs on both Python 2.7 and Python 3.3+, smoothing over language differences between the two versions.
pytest is a testing framework that lets you write test functions using plain assert statements and automatically discovers and runs them, with detailed failure reporting.
See also i18nice · translationstring · SmartlingApiSdk · oslo.i18n · babel · zope.i18n · flufl.i18n · flask-babel · edx-i18n-tools · l18n