Skip to content
A Python helper library to convert between ISO 639 two- and three-letter codes.
Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
languagecodes
tests
.bumpversion.cfg
.gitignore
.travis.yml
LICENSE
MANIFEST.in
README.md
setup.py

README.md

languagecodes

Build Status

This library helps to normalise the ISO 639 codes used to describe languages from two-letter codes to three letters, and vice versa.

import languagecodes

assert 'eng' == languagecodes.iso_639_alpha3('en')
assert 'eng' == languagecodes.iso_639_alpha3('ENG ')
assert 'en' == languagecodes.iso_639_alpha2('ENG ')

You can install the library from the Python package index:

pip install languagecodes

Uses data from: https://iso639-3.sil.org/ See also: https://www.loc.gov/standards/iso639-2/php/code_list.php

You can’t perform that action at this time.