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.0.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | f738ee88bf982daf8e55a9c5aeea485f3e123a70b8859e22d8cae9fe3b360258 |
|
MD5 | c00ad5501c1949a7b21e10a6885d5101 |
|
BLAKE2b-256 | 01e295d368a8180214f633161ba4d49014bf294dc5a1a220f8c34cd26bb9736e |
Close
Hashes for mediawiki_langcodes-0.1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | abd2999474584aa27fa02afe3ffac82758585f32e0c7caab2d189ecef1d07ab3 |
|
MD5 | 02b6ab39de8e324f226dc48a8d3bcd6b |
|
BLAKE2b-256 | b9a65e3795eef61434fbf285585786a01d522e953d3ac4fb79ca201fa290ce0d |