Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mediawiki_langcodes-0.2.6.tar.gz (5.5 MB view hashes)

Uploaded Source

Built Distribution

mediawiki_langcodes-0.2.6-py3-none-any.whl (5.5 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page