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.1.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1cf0074c78506c67a1fea8ffdadf81cd19f9000fa3ec8724ef4e74dd430dd63d |
|
MD5 | e064fd5746fd71616f91222443c2b9a2 |
|
BLAKE2b-256 | 97349bc225731a62cb81f30c70c6d2a1d7742022949f8189480e3a37612a4f5c |
Close
Hashes for mediawiki_langcodes-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e6d2b99384616d96fcdf9f008c90108c7821fe23e491f5bc0570d8545c613c9 |
|
MD5 | 1c13c6df705dc5503e6da86771d097c4 |
|
BLAKE2b-256 | 8dca1c137f5971bb48405a4d1d50211752346827cf6ff8a4229e55488e76caca |