Jump to content

Module:languages/canonical names/documentation

From Wiktionary, the free dictionary
Documentation for Module:languages/canonical names. [edit]
This page contains usage information, categories, interwiki links and other content describing the module.

This module exports a table that converts the canonical name of a language to the corresponding code:

local lang_name = mw.loadData("Module:languages/canonical names")["English"] --> "en"

It covers languages in the data submodules of Module:languages, not etymology languages (Module:etymology languages/data), language families (Module:families), or scripts (Module:scripts/data).

This module is up-to-date and correct according to Module:data consistency check.

If JavaScript is enabled, you can update the module by pressing the button at the top of the documentation page.

See also Module:languages/code to canonical name.