Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

> 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.

More Python utilities / Discuss / Report bug / Report vulnerability