Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

> non-latin-locales

ISO 639-1 (2-letter) codes for non-Latin locales requiring advanced Unicode support.

It's just a JSON file, so you can use it in any environment.

Installation

pip install non-latin-locales

Usage

import non_latin_locales

print(non_latin_locales)
# => ['ab', 'am', 'ar', 'as', 'av', 'az', 'ba', 'be', 'bg', ...]

Note: Most type checkers will falsely warn non_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

🇪🇸 latin-locales - ISO 639-1 (2-letter) codes for 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