ISO 639-1 (2-letter) codes for Latin locales that don't require advanced Unicode support
Project description
> latin-locales
ISO 639-1 (2-letter) codes for Latin locales that don't require advanced Unicode support.
It's just a JSON file, so you can use it in any environment.
Installation
pip install latin-locales
Usage
import latin_locales
print(latin_locales)
# => ['aa', 'ae', 'af', 'ak', 'an', 'ay', 'bi', 'bm', 'br', ...]
Note: Most type checkers will falsely warn latin_locales is not iterable because they are incapable of analyzing runtime behavior (where the module is replaced w/ a list for cleaner, direct access). You can safely suppress such warnings using # type: ignore.
MIT License
Copyright © 2026 Adam Lui
Related
🇨🇳 non-latin-locales - ISO 639-1 (2-letter) codes for non-Latin locales.
🌍 translate-messages - Translate en/messages.json (chrome.i18n format) to 100+ locales automatically.
🈶 is-unicode-supported - Detect whether the terminal supports advanced Unicode.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file latin_locales-1.0.2.tar.gz.
File metadata
- Download URL: latin_locales-1.0.2.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
88e57c0e73d9fe4a9137c0967da729b408bdec3e6d981f43337e9ed2efbe7dbb
|
|
| MD5 |
036825dd014e2dec7c6b3ff0c9cee99f
|
|
| BLAKE2b-256 |
5ff3f2df39c6365ccd139dea3295db05bb534c16ec6c8b18a010246741983a41
|
File details
Details for the file latin_locales-1.0.2-py2.py3-none-any.whl.
File metadata
- Download URL: latin_locales-1.0.2-py2.py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 2, Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
71f076950d7165af1046bb24a197867ff28ff71b77f01f792633353a29ab466b
|
|
| MD5 |
803a1073f109af4cd787c6a9bbe8e5f8
|
|
| BLAKE2b-256 |
175d0c8fdebd76b15efa99c943037443af042b779a9338e385d367ba6dd891ad
|