lcid

LCID lookup tool


License
CC0-1.0
Install
pip install lcid==1.0.0

Documentation

lcid-python

Get LCIDs for BCP 47 tags in Python.

Usage

  • get(tag: str) -> int (eg: 1033)
  • get_hex4(tag: str) -> str (eg: '0409')
  • get_hex8(tag: str) -> str (eg: '00000409')

All functions return None if nothing found. A rational default is 0 or 0x1000 depending on your use case.

License

CC0 - see LICENSE.