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.9.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | df310057517d1db23b601f20839057ad70a12a20c4781acc4989af28e6269aea |
|
MD5 | 6c4429457229fd9a64582ab5e3499407 |
|
BLAKE2b-256 | 3be51320563215c0a62ab080df3935774911cc5ae98ac2eb6b47265172022fff |
Close
Hashes for mediawiki_langcodes-0.2.9-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2e14677a8107c6edc4d4411bb29fe1c6c1698eb16072fce5c2db8ca89207a6e |
|
MD5 | 9948cc2f741288899b9ac586580a7e6e |
|
BLAKE2b-256 | e1153a05fe5e2a34b45f7bfb7aa1ca93b69469bf4c8b96a938f29f3dd7820358 |