Convert MediaWiki language names and codes
Project description
MediaWiki langcodes
Convert MediaWiki language names and language codes.
Build dependencies
-
php
-
wget
Build
$ python -m venv .venv
$ source .venv/bin/activate.fish
$ python -m pip install -U pip build
$ make
Usage
from mediawiki_langcodes import code_to_name, name_to_code
code_to_name("fr") # return "français"
code_to_name("fr", "en") # return "French"
name_to_code("français") # return "fr"
name_to_code("français", "fr") # return "fr"
Project details
Release history Release notifications | RSS feed
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
Close
Hashes for mediawiki_langcodes-0.2.7.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4e6c56a547fa208ecc0ca7bb5f350557b688104b2de5cd17623a36fff15b02b7 |
|
MD5 | 0060c8cd8e453801b73237b3ee70c4a0 |
|
BLAKE2b-256 | 9632b7b2e26f038af1867d0622fa902325f9777809114206028ba231980bf035 |
Close
Hashes for mediawiki_langcodes-0.2.7-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8102182355b6fd391419fb075eb542ea55f6a9dd958cf7da18f37a45de9efee0 |
|
MD5 | 66a1373daba536e6c7f594ea41ac11ca |
|
BLAKE2b-256 | 2bb5a03c89e6d1a440b7f0a582b1700333a600bce94132285a22902409f03601 |