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.6.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 478c9a6988a0428237be476a856fc4b2110b93da7eaee04548f4bafcf2d8329b |
|
MD5 | 49afdeba67305ad00acfb87aca5be0cf |
|
BLAKE2b-256 | 75c8e0ea2c60e03a36a29aeacf58bf16bd9808dabd91ecab5040e7818befea4a |
Close
Hashes for mediawiki_langcodes-0.2.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | efc1a4a06e7d203c0b13be5841454c01655d902a8987a92f12559d73270befc7 |
|
MD5 | 66a5d01898b60f0625b6ba4732bdb337 |
|
BLAKE2b-256 | a100be6c6593b280572240268590e67898a1b37022054f4940ee6f034bd094ce |