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.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 691efa1797a280dce90dfe7b226de251abbe7abd83c7db47db60f1559eb6a51b |
|
MD5 | 692aa2bb37f3defa49082e2fb9dcfe82 |
|
BLAKE2b-256 | 60bfd12341f67dcd81a1911d7ca74a1ab5ba9e42487a4db7b8d82bfa2fc1526c |
Close
Hashes for mediawiki_langcodes-0.2.8-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6ee0b232bebd146d6d7d0aebe04f350a357e08091035b9dd7d0e84da9ff7b987 |
|
MD5 | 2930e55b40e1da46002017dcb26c2dc0 |
|
BLAKE2b-256 | 5cddc2e6c1aa22923ebc8c7e4a284bd764b7f2dbcda74cc48774467f4316adab |