Registry / data / weblate-language-data

weblate-language-data

JSON →
library2026.8pypypi✓ verified 82d ago

Provides language definitions (names, plurals, country info) used by Weblate. Version 2026.7 requires Python >=3.11. Released on a monthly cadence alongside Weblate releases.

pip install weblate-language-data
INSTALL
IMPORT
SIG · WEBLATE-LANGUAGE-D
W
weblate-language-data
datapythonv2026.8
Install
1.8s avg
Import
Disk
43MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v2026.3 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.95 runs
installs and imports cleanly · install 0.0s · import 0.000s · 44.1MB
glibc
py 3.103.95 runs
installs and imports cleanly · install 1.8s · import 0.000s · 45MB
43MB installed
● package 43MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

default_app_config
from weblate_language_data import default_app_config
from weblate_language_data import COUNTRIES

Import and use the language data constants.

from weblate_language_data import COUNTRIES, LANGUAGES, PLURAL_REPRESENTATIVES # List all languages for code, name in LANGUAGES.items(): print(f"{code}: {name}") # Get country name for a country code print(COUNTRIES.get('cz', 'Czechia')) # Get plural forms for a language print(PLURAL_REPRESENTATIVES.get('cs', 'nplurals=3; plural=(n==1 ? 0 : n>=2 && n<=4 ? 1 : 2);'))
Debug
Known issues
breakingPython 3.11 minimum required starting from version 2026.7. Older Python versions will get ImportError or install failure.
fix
Upgrade Python to 3.11+ or pin to an older version (e.g., weblate-language-data==2025.12).
affects: >=2026.7
gotchaThe package name uses hyphens on PyPI (weblate-language-data), but the import uses underscores (weblate_language_data). Common mistake: try to import weblate.language_data.
fix
Use `from weblate_language_data import ...`
affects: all
gotchaLANGUAGES dict keys are language codes (e.g., 'cs_CZ') not just 'cs'. Use PLURAL_REPRESENTATIVES for plural forms with language-only codes.
fix
Check the exact key format in the source data.
affects: all
Upgrade
Version history
2026.8latest on PyPI · released May 14, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
33 hits · last 30 days
node
28
OpenAI (training)
1
Resources
weblate-language-data — pip install weblate-language-data · libregistry