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.5.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 92deb27f5c13fd1bed752c939bb2650f6dbb23c14db6b87ae275f70ce563235c |
|
MD5 | 0a2f68f4b78d6b8364184c6ca8970b20 |
|
BLAKE2b-256 | d418fe902f8666f716adb4e281d8d99e05da5cc9fa70217e948d80111f3a6396 |
Close
Hashes for mediawiki_langcodes-0.2.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6cbea3de42046416d0d61d989e644973be77157550b4c917af3314d6941af115 |
|
MD5 | f7c44417cd6049f8297a654272ddbe64 |
|
BLAKE2b-256 | f134ddb5e8df4db2b6ffc4d318c9db0791d13dbd81cbd86319c0d31b9eed760e |