l18n
Internationalization for pytz timezones and territories
What it is and what it does
l18n provides lazy-evaluated, language-aware translations for timezone and territory names used in localization. It wraps pytz timezones and CLDR country codes, exposing three main read-only dictionary-like objects: tz_cities (maps timezone IDs to translated city names), tz_fullnames (maps timezone IDs to full translated timezone paths), and territories (maps country codes to localized country names). Translations are evaluated on-the-fly in the currently selected language, so the same lazy string can produce different outputs if you switch languages between evaluations.
The package is designed for multi-lingual applications where users need to select their timezone or location in their own language—a common requirement when timezone names differ significantly from English (e.g., 'Île de Pâques' vs 'Easter Island'). It supports five languages out of the box and includes utility functions to map timezones to country codes and retrieve timezone lists for a given country. The main dependencies are pytz (for timezone data) and six (for Python 2/3 compatibility, though Python 2 is no longer relevant).
Use it for:
- Display timezone selectors in a user's native language on a multi-lingual web application.
- Translate country/territory names in dropdown menus or location pickers for international users.
- Generate sorted lists of timezones or territories in the user's current language without re-sorting on each language change.
- Build a timezone lookup utility that returns both the timezone ID and its human-friendly translated name for API responses.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Provides lazy translations for timezone and territory names in multiple languages, mapping pytz timezones and CLDR country codes to localized strings.
Yes, if you need multilingual timezone or territory names and can accept dormant maintenance. The package is stable (Production/Stable classifier), has no known vulnerabilities, and low install friction. However, do not use it if you require active maintenance, Python 3.12+ support verification, or ongoing translation updates—the last release was 2021 and the repository shows no recent activity. For new projects, consider whether a more actively maintained i18n solution might be safer long-term.
Install
l18n on PyPI
pip
pip install l18nuv
uv add l18npoetry
poetry add l18nInstalling l18n
Before you install
Low install friction with only two lightweight runtime dependencies (pytz and six). Maintenance is dormant—last release was 2021-11-12 and no commits since 2023-11-13—so expect no active bug fixes or updates for new Python versions.
License in practice
MIT license (permissive) means you can use, modify, and distribute freely with minimal restrictions, making it safe for commercial and open-source projects.
Quickstart
pip install l18n
import l18n
l18n.set_language('en')
print(l18n.tz_cities['Pacific/Easter'])
print(l18n.territories['CZ'])
Verify before relying
- Whether the package works reliably with modern Python versions beyond those tested at release (2021).
- Current state of translation completeness for the five supported languages (English, French, German, Czech, Chinese).
- Whether CLDR data bundled in the package remains accurate relative to current pytz versions.
Package facts
| License | not declared (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 2 — pytz, six |
| Maintenance | dormant — 1,736 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 323,730/month — #7,603 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: l18n-2021.3-py3-none-any.whl
Keywords: pytz, translation, i18n
Tags
More Internationalization packages
Measures the displayed width of Unicode strings…
permissive · top 1,000 on PyPI
babelBabel provides internationalization (i18n) and…
permissive · top 1,000 on PyPI
pycountryProvides programmatic access to ISO standard…
copyleft · top 1,000 on PyPI
num2wordsConverts numbers to their word representations…
copyleft · top 5,000 on PyPI
polibpolib reads, writes, and manipulates gettext…
permissive · top 5,000 on PyPI
pyunormalizeProvides Unicode normalization (NFC, NFD, NFKC,…
permissive · top 5,000 on PyPI
flask-babelAdds internationalization (i18n) and…
permissive · top 5,000 on PyPI
quart_babelAdds internationalization (i18n) and…
permissive · top 15,000 on PyPI
weblate-language-dataProvides language definitions, plural rules,…
permissive · top 15,000 on PyPI
pytzpytz brings the Olson timezone database into…
permissive · top 100 on PyPI
django-timezone-fieldProvides Django database, form, and REST…
permissive · top 5,000 on PyPI
python-i18nProvides internationalization (i18n)…
permissive · top 15,000 on PyPI
zope.i18nProvides internationalization and localization…
unclear · top 15,000 on PyPI
translationstringProvides translation string objects and…
permissive · top 5,000 on PyPI
language-dataProvides multilingual language names, speaker…
permissive · top 5,000 on PyPI