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.4.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9690347dd42fc1d012accc5991442f349e02260c93c60321a2aa87f8b4e8209f |
|
MD5 | 248ac2f2300aa30c630fb219ccd98533 |
|
BLAKE2b-256 | e94fb67c19b1a8875ebe0a0db982b8752929c85f8f38dcb160e9f071d59f3b99 |
Close
Hashes for mediawiki_langcodes-0.2.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 04c7e5ac536b2a766564ab33693591773a58823ab203401bda23ef61f6944b55 |
|
MD5 | 0dc40137150942cea522fb5b376ddfa6 |
|
BLAKE2b-256 | e1d772fa9fd360423703c6e8dc0dbe46fdb5a3042a58b4aeec898b69248d9435 |