Module:languages/data2

Definition from Wiktionary, the free dictionary
Jump to navigation Jump to search

This module contains definitions and metadata for two-letter language codes. See Wiktionary:Languages for more information.

This module must not be used directly in other modules or templates. The data should be accessed through Module:languages. For the corresponding extra data, see Module:languages/extradata2.

Errors

Module:data consistency check shows no relevant errors.

Required values

Every entry in the table must contain the following indexed fields:

1
The "canonical" name of the language. This is the name that is used in Wiktionary entries and category names.
2
The Wikidata item id (Q number) for the language. Can be specified as a number (a positive integer) or a string that starts with Q and ends with decimal digits. Set to nil if not known/present. This replaces the older wikipedia_article property, which can still be used to link to specific sections or language editions.

Optional values

3
The code for the family that the language belongs to. See Wiktionary:Families.
4
A list of script codes, see Wiktionary:Scripts. These represent all the scripts (writing systems) that this language uses in the real world, as well as the ones that Wiktionary uses. The scripts that are used most often on Wiktionary should be first in the list, as this will speed up script detection.
Many templates and modules detect the script of text in a particular language using the findBestScript function in Module:scripts. This function goes down the list of scripts and counts how many characters in the text belong to each script. If all the characters belong to one script, that script will be returned; otherwise, the script with the most characters will be returned. Thus, script detection will be faster if the most frequently used scripts are first in the list.

The properties entry_name and sort_key are used for text substitution; they replace or remove certain characters or sets of characters. They both work similarly, and are optional. They can both be tables, and both can also be the name of a module that takes an entry name and generates a entry name or sort key (which is used to sort the entry on category pages), respectively.

if entry_name is the name of a module (for instance, "ar-entryname" referring to Module:ar-entryname), the module must contain a entry name generating function that is named makeEntryName. This function must take the arguments text, lang, sc, where text is the page name (or other text in the language), lang is the language code (not the language object), and sc is the script code (not the script object). The returned value should always be a string, or there will be a module error in the Language:makeEntryName() function.

if sort_key is the name of a module (for instance, "zh-sortkey" referring to Module:zh-sortkey), the module must contain a sortkey-generating function that is named makeSortKey. This function must take the arguments text, lang, sc, where text is the page name (or other text in the language), lang is the language code (not the language object), and sc is the script code (not the script object). The returned value should always be a string, or there will be a module error in the Language:makeSortKey() function.

If entry_name or sort_key is a table, it should have one of (1) from and to, (2) remove_diacritics (and optionally remove_exceptions), or (3) both. from is paired with to, and both of them must be tables that are organised pairwise: each element in from is a pattern to identify which characters in the term to replace, while the corresponding element in to defines what to replace them with (as an argument to mw.ustring.gsub).

If the replacement is not present or if it is false or nil, it defaults to an empty replacement, meaning that the matching characters are removed altogether. This means that the from list can be longer than the to list, and an empty replacement will be assumed for any elements in from that have no counterpart in to.

entry_name and sort_key can also contain a string remove_diacritics, which contains characters that will be removed after the text is decomposed. For instance, if remove_diacritics is a combining acute accent, all acute accents will be stripped, even if they are part of precomposed characters (like á or ά).

Furthermore, if entry_name or sort_key contain a remove_diacritics string, they can also contain a remove_exceptions table, which prevents specific characters from having their diacritics removed. For instance, if remove_diacritics is a combining diaeresis, but remove_exceptions contains the value "ё", then any instances of "ё" will remain unchanged. On the other hand, an instance of "ӱ" will still become "у" (unless it is also added to remove_exceptions).

The tables can contain literal characters, or the patterns (a type of regular expressions) that are used by the standard Scribunto mw.ustring.gsub function. See the Scribunto reference manual for more information.

At the top of the module, there is a list of combining characters with names. These are provided for convenience and readability, as combining characters generally do not display properly inside the module code (although they do not affect the actual operation of the module).

entry_name
Defines replacements to create the entry name from the displayed form of a term. This can be used to remove certain diacritical marks according to the customs or standard practice of the language. For example, it is used to remove accent marks from Russian words (ру́сскийрусский), or macrons from Latin or Old English words (ōsos), as these are not used in the normal written form of these languages. This is used by makeEntryName in Module:languages.
sort_key
Defines replacements to create a category sort key from the page name. The purpose is to remove any characters that are ignored in sorting, and to replace similar characters with identical ones if the sorting rules for that language do not distinguish them. For example, in German, the characters "ä" and "a" are considered equivalent for sorting, and are both treated as "a". The page name is converted to lowercase before applying the replacements, so you should not add uppercase letters to the "from" lists. This is used by makeSortKey in Module:languages.

These are other optional values:

type
The type of language (which affects how it is handled on Wiktionary). Possible values are:
  • regular - This value is the default, so it doesn't need to be specified. It indicates that the is attested according to WT:CFI and therefore permitted in the main namespace. There may also be reconstructed terms for the language, which are placed in the Reconstruction namespace and must be prefixed with * to indicate a reconstruction.
  • reconstructed - This language is not attested according to CFI, and therefore is allowed only in the Reconstruction namespace. All terms in this language are reconstructed, and must be prefixed with *.
  • appendix-constructed - This language is attested but does not meet the additional requirements set out for constructed languages (WT:CFI#Constructed languages). Its entries must therefore be in the Appendix namespace, but they are not reconstructed and therefore should not have * prefixed in links.
translit_module
The name of a module that is used to generate transliterations of terms, without the Module: prefix. This module must export a function named tr that is defined as follows:
tr(text, lang, sc)
The three parameters are the text to be transliterated, the language code, and the script code. The function can ignore the language and script codes, but they are provided for cases when a language has more than one script, or when a single function is used to transliterate multiple languages sharing the same script.
ancestors
A table listing the language codes of the direct ancestors of this language. For example, the ancestor of English is listed as enm (Middle English); ang (Old English, the ancestor of Middle English), gem-pro (Proto-Germanic, the ancestor of Old English), and ine-pro (Proto-Indo-European, the ancestor of Proto-Germanic) are not listed.
For most languages, only one ancestor code should be given, but multiple ancestors can be listed for pidgins, creoles and mixed languages.
The ancestor language table should not be included if the language's direct ancestor is the proto-language of the family to which the language belongs. In such a case, if the family code has been provided, Module:languages will automatically add the proto-language as the language's ancestor. For example, Proto-Germanic (gem-pro) belongs to the Indo-European (ine) family, and its direct ancestor is Proto-Indo-European (ine-pro). Because Proto-Indo-European is the proto-language of the Indo-European languages, Proto-Germanic does not need an ancestors table; Proto-Indo-European will be automatically returned as its ancestor by the getAncestors function.
wikimedia_codes
A table listing the Wikimedia language codes that this language maps to. This is used to translate Wiktionary codes to Wikimedia codes, which are usually the same but there are a few languages where it is different. The language codes must be valid Wikimedia codes (as determined by the wiki software), and if they are not defined in one of the language data modules, they must be defined in Module:wikimedia languages/data.
wikipedia_article
The name of the Wikipedia article for the language. Should normally only be supplied if the Wikidata id cannot be used.
link_tr
Set this to true to link the language's transliteration. For instance, Gothic has entries in Gothic script and entries for transliterations: 𐌷𐌻𐌰𐌹𐌱𐍃 (hlaibs).
dotted_dotless_i
Set this to true for languages that distinguish between the dotted and dotless I (such as some Turkic languages).

Formerly supported values

aliases, varieties, otherNames
This data is now located in the extra data modules; see Module:languages and Template:language extradata documentation.
family
Now 3.
scripts
Now 4.

local u = mw.ustring.char

-- UTF-8 encoded strings for some commonly-used diacritics
local GRAVE     = u(0x0300)
local ACUTE     = u(0x0301)
local CIRC      = u(0x0302)
local TILDE     = u(0x0303)
local MACRON    = u(0x0304)
local BREVE     = u(0x0306)
local DIAER     = u(0x0308)
local RINGABOVE = u(0x030A)
local CARON     = u(0x030C)
local DGRAVE    = u(0x030F)
local INVBREVE  = u(0x0311)
local DOTBELOW  = u(0x0323)
local DIAERBELOW = u(0x0324)
local CEDILLA   = u(0x0327)
local BREVEBELOW = u(0x032E)
local CGJ       = u(0x034F) -- combining grapheme joiner
local DOUBLEINVBREVE = u(0x0361)
local KASHIDA   = u(0x0640)
local FATHATAN  = u(0x064B)
local DAMMATAN  = u(0x064C)
local KASRATAN  = u(0x064D)
local FATHA     = u(0x064E)
local DAMMA     = u(0x064F)
local KASRA     = u(0x0650)
local SHADDA    = u(0x0651)
local SUKUN     = u(0x0652)
local NUNGHUNNA = u(0x0658)
local SUPERALEF = u(0x0670)

-- Punctuation to be used for standardChars field
local PUNCTUATION = ' !#%&*+,-./:;<=>?@^_`|~\'()∅'

-- Use these in "scripts" to save a little memory.
local Arab = {"Arab"}
local CansLatn = {"Cans", "Latn"}
local Cyrl = {"Cyrl"}
local CyrlGeorLatn = {"Cyrl", "Geor", "Latn"}
local CyrlLatnArab = {"Cyrl", "Latn", "Arab"}
local Deva = {"Deva"}
local Ethi = {"Ethi"}
local Latn = {"Latn"}
local LatnArab = {"Latn", "Arab"}
local LatnBrai = {"Latn", "Brai"}
local LatnCyrlfaArab = {"Latn", "Cyrl", "fa-Arab"}
local LatnHani = {"Latn", "Hani"}
local Tibt = {"Tibt"}

local m = {}

m["aa"] = {
	"Afar",
	27811,
	"cus-eas",
	Latn,
	entry_name = {remove_diacritics = ACUTE},
}

m["ab"] = {
	"Abkhaz",
	5111,
	"cau-abz",
	CyrlGeorLatn,
	translit_module = "ab-translit",
	override_translit = true,
	entry_name = "cau-entryname",
	sort_key = "ab-sortkey",
}

m["ae"] = {
	"Avestan",
	29572,
	"ira-cen",
	{"Avst", "Gujr"},
	translit_module = "Avst-translit",
	wikipedia_article = "Avestan",
}

m["af"] = {
	"Afrikaans",
	14196,
	"gmw",
	LatnArab,
	ancestors = {"nl"},
	sort_key = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. TILDE .. DIAER .. RINGABOVE .. CEDILLA .. "'"},
}

m["ak"] = {
	"Akan",
	28026,
	"alv-ctn",
	Latn,
}

m["am"] = {
	"Amharic",
	28244,
	"sem-eth",
	Ethi,
	translit_module = "Ethi-translit",
}

m["an"] = {
	"Aragonese",
	8765,
	"roa-ibe",
	Latn,
	ancestors = {"roa-oan"},
}

m["ar"] = {
	"Arabic",
	13955,
	"sem-arb",
	{"Arab", "Hebr", "Brai"},
	translit_module = "ar-translit",
	entry_name = "ar-entryname",
	-- put Judeo-Arabic (Hebrew-script Arabic) under the category header
	-- U+FB21 HEBREW LETTER WIDE ALEF so that it sorts after Arabic script titles
	sort_key = {
		from = {"^%f[" .. u(0x5D0) .. "-" .. u(0x5EA) .. "]"},
		to   = {u(0xFB21)},
	},
}

m["as"] = {
	"Assamese",
	29401,
	"inc-eas",
	{"as-Beng"},
	ancestors = {"inc-mas"},
	translit_module = "as-translit",
}

m["av"] = {
	"Avar",
	29561,
	"cau-ava",
	CyrlLatnArab,
	ancestors = {"oav"},
	translit_module = "av-translit",
	override_translit = true,
	entry_name = "cau-entryname",
	sort_key = "av-sortkey",
}

m["ay"] = {
	"Aymara",
	4627,
	"sai-aym",
	Latn,
}

m["az"] = {
	"Azerbaijani",
	9292,
	"trk-ogz",
	LatnCyrlfaArab,
	ancestors = {"trk-oat"},
	dotted_dotless_i = true,
	sort_key = "az-sortkey",
}

m["ba"] = {
	"Bashkir",
	13389,
	"trk-kbu",
	Cyrl,
	translit_module = "ba-translit",
	override_translit = true,
	sort_key = "ba-sortkey",
}

m["be"] = {
	"Belarusian",
	9091,
	"zle",
	Cyrl,
	ancestors = {"zle-ort"},
	translit_module = "be-translit",
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
	sort_key = "be-sortkey",
}

m["bg"] = {
	"Bulgarian",
	7918,
	"zls",
	Cyrl,
	ancestors = {"cu"},
	translit_module = "bg-translit",
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
}

m["bh"] = {
	"Bihari",
	135305,
	"inc-eas",
	Deva,
	ancestors = {"inc-mgd"},
}

m["bi"] = {
	"Bislama",
	35452,
	"crp",
	Latn,
	ancestors = {"en"},
}

m["bm"] = {
	"Bambara",
	33243,
	"dmn-emn",
	Latn,
	sort_key = "bm-sortkey",
}

m["bn"] = {
	"Bengali",
	9610,
	"inc-eas",
	{"Beng", "Newa"},
	ancestors = {"inc-mbn"},
	translit_module = "bn-translit",
}

m["bo"] = {
	"Tibetan",
	34271,
	"sit-tib",
	Tibt, -- sometimes Deva?
	ancestors = {"xct"},
	translit_module = "bo-translit",
	override_translit = true,
}

m["br"] = {
	"Breton",
	12107,
	"cel-bry",
	Latn,
	ancestors = {"xbm"},
	sort_key = "br-sortkey",
}

m["ca"] = {
	"Catalan",
	7026,
	"roa-ocr",
	Latn,
	ancestors = {"roa-oca"},
	sort_key = "ca-sortkey",
}

m["ce"] = {
	"Chechen",
	33350,
	"cau-vay",
	CyrlLatnArab,
	translit_module = "ce-translit",
	override_translit = true,
	entry_name = "cau-entryname",
	sort_key = "ce-sortkey",
}

m["ch"] = {
	"Chamorro",
	33262,
	"poz-sus",
	Latn,
	sort_key = "ch-sortkey",
}

m["co"] = {
	"Corsican",
	33111,
	"roa-itd",
	Latn,
	sort_key = "co-sortkey",
}

m["cr"] = {
	"Cree",
	33390,
	"alg",
	CansLatn,
	translit_module = "translit-redirect",
}

m["cs"] = {
	"Czech",
	9056,
	"zlw",
	Latn,
	ancestors = {"zlw-ocs"},
	sort_key = "cs-sortkey",
}

m["cu"] = {
	"Old Church Slavonic",
	35499,
	"zls",
	{"Cyrs", "Glag"},
	translit_module = "Cyrs-Glag-translit",
	entry_name = "Cyrs-entryname",
	sort_key = "Cyrs-sortkey",
}

m["cv"] = {
	"Chuvash",
	33348,
	"trk-ogr",
	Cyrl,
	ancestors = {"xbo"},
	translit_module = "cv-translit",
	override_translit = true,
	sort_key = "cv-sortkey",
}

m["cy"] = {
	"Welsh",
	9309,
	"cel-bry",
	Latn,
	ancestors = {"wlm"},
	sort_key = "cy-sortkey",
	standardChars = "A-IL-PR-UWYa-il-pr-uwy0-9ÂâÊêÎîÔôÛûŴŵŶŷ" .. PUNCTUATION,
}

m["da"] = {
	"Danish",
	9035,
	"gmq",
	Latn,
	ancestors = {"gmq-oda"},
	sort_key = "da-sortkey",
}

m["de"] = {
	"German",
	188,
	"gmw",
	{"Latn", "Latf"},
	ancestors = {"gmh"},
	sort_key = "de-sortkey",
	standardChars = "A-Za-z0-9ÄäÖöÜüß" .. PUNCTUATION,
}

m["dv"] = {
	"Dhivehi",
	32656,
	"inc-ins",
	{"Thaa", "Diak"},
	ancestors = {"elu-prk"},
	translit_module = "translit-redirect",
	override_translit = true,
}

m["dz"] = {
	"Dzongkha",
	33081,
	"sit-tib",
	Tibt,
	ancestors = {"xct"},
	translit_module = "bo-translit",
	override_translit = true,
}

m["ee"] = {
	"Ewe",
	30005,
	"alv-gbe",
	Latn,
	sort_key = "ee-sortkey",
}

m["el"] = {
	"Greek",
	9129,
	"grk",
	{"Grek", "Brai"},
	ancestors = {"grc"},
	translit_module = "el-translit",
	override_translit = true,
	entry_name = {remove_diacritics = CARON .. DIAERBELOW .. BREVEBELOW},
	sort_key = "Grek-sortkey",
	standardChars = "ͺ;΄-ώϜϝ" .. PUNCTUATION,
}

m["en"] = {
	"English",
	1860,
	"gmw",
	{"Latn", "Brai", "Shaw", "Dsrt"}, -- entries in Shaw or Dsrt might require prior discussion
	ancestors = {"enm"},
	sort_key = "en-sortkey",
	wikimedia_codes = {"en", "simple"},
	standardChars = "A-Za-z0-9" .. PUNCTUATION .. u(0x2800) .. "-" .. u(0x28FF),
}

m["eo"] = {
	"Esperanto",
	143,
	"art",
	Latn,
	sort_key = "eo-sortkey",
	standardChars = "A-PRSTUVZa-prstuvzĉĈĝĜĵĴŝŜŭŬ0-9" .. PUNCTUATION,
}

m["es"] = {
	"Spanish",
	1321,
	"roa-ibe",
	LatnBrai,
	ancestors = {"osp"},
	sort_key = "es-sortkey",
	standardChars = "A-VXYZa-vxyz0-9ÁáÉéÍíÓóÚúÑñ¿¡" .. PUNCTUATION,
}

m["et"] = {
	"Estonian",
	9072,
	"fiu-fin",
	Latn,
	sort_key = "et-sortkey",
}

m["eu"] = {
	"Basque",
	8752,
	"euq",
	Latn,
	sort_key = "eu-sortkey",
}

m["fa"] = {
	"Persian",
	9168,
	"ira-swi",
	{"fa-Arab"},
	ancestors = {"pal"}, -- "ira-mid"
	entry_name = {remove_diacritics = KASHIDA .. FATHA .. DAMMA .. KASRA .. SHADDA .. SUKUN},
}

m["ff"] = {
	"Fula",
	33454,
	"alv-fwo",
	{"Latn", "Adlm"},
}

m["fi"] = {
	"Finnish",
	1412,
	"fiu-fin",
	Latn,
	entry_name = {remove_diacritics = "ˣ"}, -- used to indicate gemination of the next consonant
	sort_key = "fi-sortkey",
}

m["fj"] = {
	"Fijian",
	33295,
	"poz-occ",
	Latn,
}

m["fo"] = {
	"Faroese",
	25258,
	"gmq",
	Latn,
	ancestors = {"non"},
	sort_key = "fo-sortkey",
}

m["fr"] = {
	"French",
	150,
	"roa-oil",
	LatnBrai,
	ancestors = {"frm"},
	sort_key = "fr-sortkey",
	standardChars = "A-Za-z0-9ÀÂÇÉÈÊËÎÏÔŒÛÙÜàâçéèêëîïôœûùü«»" .. PUNCTUATION,
}

m["fy"] = {
	"West Frisian",
	27175,
	"gmw-fri",
	Latn,
	ancestors = {"ofs"},
	sort_key = "fy-sortkey",
	standardChars = "A-PR-WYZa-pr-wyz0-9Ææâäàéêëèïìôöòúûüùỳ" .. PUNCTUATION,
}

m["ga"] = {
	"Irish",
	9142,
	"cel-gae",
	Latn,
	ancestors = {"mga"},
	sort_key = "ga-sortkey",
	standardChars = "A-IL-PR-Ua-il-pr-u0-9ÁáÉéÍíÓóÚú" .. PUNCTUATION,
}

m["gd"] = {
	"Scottish Gaelic",
	9314,
	"cel-gae",
	Latn,
	ancestors = {"mga"},
	sort_key = {remove_diacritics = GRAVE .. ACUTE},
	standardChars = "A-IL-PR-Ua-il-pr-u0-9ÀàÈèÌìÒòÙù" .. PUNCTUATION,
}

m["gl"] = {
	"Galician",
	9307,
	"roa-ibe",
	Latn,
	ancestors = {"roa-opt"},
	sort_key = "gl-sortkey",
}

m["gn"] = {
	"Guaraní",
	35876,
	"tup-gua",
	Latn,
}

m["gu"] = {
	"Gujarati",
	5137,
	"inc-wes",
	{"Gujr"},
	ancestors = {"inc-mgu"},
	translit_module = "gu-translit",
}

m["gv"] = {
	"Manx",
	12175,
	"cel-gae",
	Latn,
	ancestors = {"mga"},
	sort_key = {remove_diacritics = CEDILLA .. "-"},
	standardChars = "A-WYÇa-wyç0-9" .. PUNCTUATION,
}

m["ha"] = {
	"Hausa",
	56475,
	"cdc-wst",
	LatnArab,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. TILDE .. MACRON},
	sort_key = "ha-sortkey",
}

m["he"] = {
	"Hebrew",
	9288,
	"sem-can",
	{"Hebr", "Phnx", "Brai"},
	entry_name = {remove_diacritics = u(0x0591) .. "-" .. u(0x05BD) .. u(0x05BF) .. "-" .. u(0x05C5) .. u(0x05C7) .. CGJ},
}

m["hi"] = {
	"Hindi",
	1568,
	"inc-hnd",
	{"Deva", "Kthi", "Newa"},
	ancestors = {"inc-ohi"},
	translit_module = "hi-translit",
	standardChars = "ँंअ-ऊएऐओ-घच-झट-नप-रलवशसहा-ूेैो-◌्।-॰ड़ढ़" .. PUNCTUATION,
}

m["ho"] = {
	"Hiri Motu",
	33617,
	"crp",
	Latn,
	ancestors = {"meu"},
}

m["ht"] = {
	"Haitian Creole",
	33491,
	"crp",
	Latn,
	ancestors = {"fr"},
	sort_key = "ht-sortkey",
}

m["hu"] = {
	"Hungarian",
	9067,
	"urj-ugr",
	{"Latn", "Hung"},
	ancestors = {"ohu"},
	sort_key = "hu-sortkey",
}

m["hy"] = {
	"Armenian",
	8785,
	"hyx",
	{"Armn", "Brai"},
	ancestors = {"axm"},
	translit_module = "Armn-translit",
	override_translit = true,
	entry_name = {
		remove_diacritics = "՞՜՛՟",
		from = {"եւ", "<sup>յ</sup>", "<sup>ի</sup>", "<sup>է</sup>"},
		to   = {"և", "յ", "ի", "է"}
	},
	sort_key = "hy-sortkey",
}

m["hz"] = {
	"Herero",
	33315,
	"bnt-swb",
	Latn,
}

m["ia"] = {
	"Interlingua",
	35934,
	"art",
	Latn,
}

m["id"] = {
	"Indonesian",
	9240,
	"poz-mly",
	Latn,
	ancestors = {"ms"},
}

m["ie"] = {
	"Interlingue",
	35850,
	"art",
	Latn,
	type = "appendix-constructed",
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC},
}

m["ig"] = {
	"Igbo",
	33578,
	"alv-igb",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. MACRON},
	sort_key = "ig-sortkey",
}

m["ii"] = {
	"Sichuan Yi",
	34235,
	"tbq-lol",
	{"Yiii"},
	translit_module = "ii-translit",
}

m["ik"] = {
	"Inupiaq",
	27183,
	"esx-inu",
	Latn,
	sort_key = "ik-sortkey",
}

m["io"] = {
	"Ido",
	35224,
	"art",
	Latn,
}

m["is"] = {
	"Icelandic",
	294,
	"gmq",
	Latn,
	ancestors = {"non"},
	sort_key = "is-sortkey",
}

m["it"] = {
	"Italian",
	652,
	"roa-itd",
	Latn,
	sort_key = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. DIAER .. RINGABOVE},
	standardChars = "A-IL-VZa-il-vz0-9ÀàÈèÌìÒòÙùÉé" .. PUNCTUATION,
}

m["iu"] = {
	"Inuktitut",
	29921,
	"esx-inu",
	CansLatn,
	translit_module = "translit-redirect",
	override_translit = true,
}

m["ja"] = {
	"Japanese",
	5287,
	"jpx",
	{"Jpan", "Brai"},
	ancestors = {"ojp"},
	--[=[
	-- Handled by jsort function in [[Module:ja]].
	sort_key = {
		from = {"[ぁァア]", "[ぃィイ]", "[ぅゔゥウヴ]", "[ぇェエ]", "[ぉォオ]", "[がゕカガヵ]", "[ぎキギ]", "[ぐクグㇰ]", "[げゖケゲヶ]", "[ごコゴ]", "[ざサザ]", "[じシジㇱ]", "[ずスズㇲ]", "[ぜセゼ]", "[ぞソゾ]", "[だタダ]", "[ぢチヂ]", "[っづッツヅ]", "[でテデ]", "[どトドㇳ]", "ナ", "ニ", "[ヌㇴ]", "ネ", "ノ", "[ばぱハバパㇵ]", "[びぴヒビピㇶ]", "[ぶぷフブプㇷ]", "[べぺヘベペㇸ]", "[ぼぽホボポㇹ]", "マ", "ミ", "[ムㇺ]", "メ", "モ", "[ゃャヤ]", "[ゅュユ]", "[ょョヨ]", "[ラㇻ]", "[リㇼ]", "[ルㇽ]", "[レㇾ]", "[ロㇿ]", "[ゎヮワヷ]", "[ヰヸ]", "[ヱヹ]", "[ヲヺ]", "ン", "[゙゚゛゜ゝゞ・ヽヾ]", "𛀀"},
		to   = {"あ", "い", "う", "え", "お", "か", "き", "く", "け", "こ", "さ", "し", "す", "せ", "そ", "た", "ち", "つ", "て", "と", "な", "に", "ぬ", "ね", "の", "は", "ひ", "ふ", "へ", "ほ", "ま", "み", "む", "め", "も", "や", "ゆ", "よ", "ら", "り", "る", "れ", "ろ", "わ", "ゐ", "ゑ", "を", "ん", "", "え"}
	},
	--]=]
}

m["jv"] = {
	"Javanese",
	33549,
	"poz-sus",
	{"Latn", "Java"},
	translit_module = "jv-translit",
	ancestors = {"kaw"},
	link_tr = true,
	sort_key = "jv-sortkey",
}

m["ka"] = {
	"Georgian",
	8108,
	"ccs-gzn",
	{"Geor", "Geok", "Hebr"}, -- Hebr is used to write Judeo-Georgian
	ancestors = {"oge"},
	translit_module = "Geor-translit",
	override_translit = true,
	entry_name = {remove_diacritics = CIRC},
}

m["kg"] = {
	"Kongo",
	33702,
	"bnt-kng",
	Latn,
}

m["ki"] = {
	"Kikuyu",
	33587,
	"bnt-kka",
	Latn,
}

m["kj"] = {
	"Kwanyama",
	1405077,
	"bnt-ova",
	Latn,
}

m["kk"] = {
	"Kazakh",
	9252,
	"trk-kno",
	{"Cyrl", "Latn", "kk-Arab"},
	translit_module = "kk-translit",
	override_translit = true,
	sort_key = "kk-sortkey",
}

m["kl"] = {
	"Greenlandic",
	25355,
	"esx-inu",
	Latn,
	sort_key = "kl-sortkey",
}

m["km"] = {
	"Khmer",
	9205,
	"mkh-kmr",
	{"Khmr"},
	ancestors = {"xhm"},
	translit_module = "km-translit",
}

m["kn"] = {
	"Kannada",
	33673,
	"dra",
	{"Knda"},
	ancestors = {"dra-mkn"},
	translit_module = "kn-translit",
}

m["ko"] = {
	"Korean",
	9176,
	"qfa-kor",
	{"Kore", "Brai"},
	ancestors = {"ko-ear"},
	translit_module = "ko-translit",
	entry_name = "Kore-entryname",
}

m["kr"] = {
	"Kanuri",
	36094,
	"ssa-sah",
	LatnArab,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. BREVE},
	sort_key = "kr-sortkey", -- the sortkey and entry_name are only for standard Kanuri; when dialectal entries get added, someone will have to work out how the dialects should be represented orthographically
}

m["ks"] = {
	"Kashmiri",
	33552,
	"inc-dar",
	{"ks-Arab", "Deva", "Shrd", "Latn"},
	translit_module = "translit-redirect",
}

-- "kv" IS TREATED AS "koi", "kpv", SEE WT:LT

m["kw"] = {
	"Cornish",
	25289,
	"cel-bry",
	Latn,
	ancestors = {"cnx"},
	sort_key = "kw-sortkey",
}

m["ky"] = {
	"Kyrgyz",
	9255,
	"trk-kip",
	CyrlLatnArab,
	translit_module = "ky-translit",
	override_translit = true,
	sort_key = "ky-sortkey",
}

m["la"] = {
	"Latin",
	397,
	"itc",
	{"Latn", "Ital"},
	entry_name = {remove_diacritics = MACRON .. BREVE .. DIAER .. DOUBLEINVBREVE},
	sort_key = "la-sortkey",
	standardChars = "A-Za-z0-9Æ挜Ā-ăĒ-ĕĪ-ĭŌ-ŏŪ-ŭȲȳ" .. MACRON .. BREVE .. PUNCTUATION,
}

m["lb"] = {
	"Luxembourgish",
	9051,
	"gmw",
	Latn,
	ancestors = {"gmw-cfr"},
	sort_key = "lb-sortkey",
}

m["lg"] = {
	"Luganda",
	33368,
	"bnt-nyg",
	Latn,
	entry_name = {remove_diacritics = ACUTE .. CIRC},
	sort_key = "lg-sortkey",
}

m["li"] = {
	"Limburgish",
	102172,
	"gmw",
	Latn,
	ancestors = {"dum"},
}

m["ln"] = {
	"Lingala",
	36217,
	"bnt-bmo",
	Latn,
	sort_key = "ln-sortkey",
}

m["lo"] = {
	"Lao",
	9211,
	"tai-swe",
	{"Laoo"},
	translit_module = "lo-translit",
	sort_key = "Laoo-sortkey",
	standardChars = "0-9ກຂຄງຈຊຍດຕຖທນບປຜຝພຟມຢຣລວສຫອຮຯ-ໝ" .. PUNCTUATION,
}

m["lt"] = {
	"Lithuanian",
	9083,
	"bat",
	Latn,
	ancestors = {"olt"},
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. TILDE},
	sort_key = "lt-sortkey",
}

m["lu"] = {
	"Luba-Katanga",
	36157,
	"bnt-lub",
	Latn,
}

m["lv"] = {
	"Latvian",
	9078,
	"bat",
	Latn,
	entry_name = {
		-- This attempts to convert vowels with tone marks to vowels either with
		-- or without macrons. Specifically, there should be no macrons if the
		-- vowel is part of a diphthong (including resonant diphthongs such
		-- pìrksts -> pirksts not #pīrksts). What we do is first convert the
		-- vowel + tone mark to a vowel + tilde in a decomposed fashion,
		-- then remove the tilde in diphthongs, then convert the remaining
		-- vowel + tilde sequences to macroned vowels, then delete any other
		-- tilde. We leave already-macroned vowels alone: Both e.g. ar and ār
		-- occur before consonants. FIXME: This still might not be sufficient.
		from = {"Ȩ", "ȩ", "[ÂÃÀ]", "[âãà]", "[ÊẼÈ]", "[êẽè]", "[ÎĨÌ]", "[îĩì]", "[ÔÕÒ]", "[ôõò]", "[ÛŨÙ]", "[ûũù]", "[ÑǸ]", "[ñǹ]", "[" .. CIRC .. TILDE ..GRAVE .."]", "([aAeEiIoOuU])" .. TILDE .."?([lrnmuiLRNMUI])" .. TILDE .. "?([^aAeEiIoOuUāĀēĒīĪūŪ])", "([aAeEiIoOuU])" .. TILDE .."?([lrnmuiLRNMUI])" .. TILDE .."?$", "([iI])" .. TILDE .. "?([eE])" .. TILDE .. "?", "A" .. TILDE, "a" .. TILDE, "E" .. TILDE, "e" .. TILDE, "I" .. TILDE, "i" .. TILDE, "U" .. TILDE, "u" .. TILDE, TILDE},
		to   = {"E", "e", "A" .. TILDE, "a" .. TILDE, "E" .. TILDE, "e" .. TILDE, "I" .. TILDE, "i" .. TILDE, "O", "o", "U" .. TILDE, "u" .. TILDE, "N", "n", TILDE, "%1%2%3", "%1%2", "%1%2", "Ā", "ā", "Ē", "ē", "Ī", "ī", "Ū", "ū", ""}
	},
	sort_key = "lv-sortkey",
}

m["mg"] = {
	"Malagasy",
	7930,
	"poz-bre",
	Latn,
}

m["mh"] = {
	"Marshallese",
	36280,
	"poz-mic",
	Latn,
	sort_key = "mh-sortkey",
}

m["mi"] = {
	"Maori",
	36451,
	"poz-pep",
	Latn,
	sort_key = "mi-sortkey",
}

m["mk"] = {
	"Macedonian",
	9296,
	"zls",
	Cyrl,
	translit_module = "mk-translit",
	entry_name = {
		remove_diacritics = ACUTE,
		remove_exceptions = {"Ѓ", "ѓ", "Ќ", "ќ"} -- possibly unnecessary
	},
	sort_key = "mk-sortkey",
}

m["ml"] = {
	"Malayalam",
	36236,
	"dra",
	{"Mlym"},
	translit_module = "ml-translit",
	override_translit = true,
}

m["mn"] = {
	"Mongolian",
	9246,
	"xgn",
	{"Cyrl", "Mong", "Latn"},
	ancestors = {"cmg"},
	translit_module = "mn-translit",
	override_translit = true,
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
	sort_key = "mn-sortkey",
	standardChars = "A-PR-UX-Za-pr-ux-zÇÖÜçöüŞşƟƵƶɵЁА-ШЫ-шы-яёҮүӨө—᠊-᠙ᠠ-ᡂ" .. PUNCTUATION,
}

-- "mo" IS TREATED AS "ro", SEE WT:LT

m["mr"] = {
	"Marathi",
	1571,
	"inc-sou",
	{"Deva", "Modi"},
	ancestors = {"omr"},
	translit_module = "translit-redirect",
	entry_name = {
		from = {"च़", "ज़", "झ़"},
		to   = {"च", "ज", "झ"}
	},
}

m["ms"] = {
	"Malay",
	9237,
	"poz-mly",
	{"Latn", "ms-Arab"},
}

m["mt"] = {
	"Maltese",
	9166,
	"sem-arb",
	Latn,
	ancestors = {"sqr"},
	sort_key = "mt-sortkey",
}

m["my"] = {
	"Burmese",
	9228,
	"tbq-brm",
	{"Mymr"},
	ancestors = {"obr"},
	translit_module = "my-translit",
	override_translit = true,
	sort_key = {
		from = {"ျ", "ြ", "ွ", "ှ", "ဿ"},
		to   = {"္ယ", "္ရ", "္ဝ", "္ဟ", "သ္သ"}
	},
}

m["na"] = {
	"Nauruan",
	13307,
	"poz-mic",
	Latn,
}

m["nb"] = {
	"Norwegian Bokmål",
	25167,
	"gmq",
	Latn,
	ancestors = {"gmq-mno"},
	sort_key = "no-sortkey",
	wikimedia_codes = {"no"},
}

m["nd"] = {
	"Northern Ndebele",
	35613,
	"bnt-ngu",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

m["ne"] = {
	"Nepali",
	33823,
	"inc-pah",
	{"Deva", "Newa"},
	translit_module = "ne-translit",
}

m["ng"] = {
	"Ndonga",
	33900,
	"bnt-ova",
	Latn,
}

m["nl"] = {
	"Dutch",
	7411,
	"gmw",
	Latn,
	ancestors = {"dum"},
	sort_key = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. TILDE .. DIAER .. RINGABOVE .. CEDILLA .. "'"},
	standardChars = "A-Za-z0-9" .. PUNCTUATION .. u(0x2800) .. "-" .. u(0x28FF),
}

m["nn"] = {
	"Norwegian Nynorsk",
	25164,
	"gmq",
	Latn,
	ancestors = {"gmq-mno"},
	sort_key = "no-sortkey",
}

m["no"] = {
	"Norwegian",
	9043,
	"gmq",
	Latn,
	ancestors = {"gmq-mno"},
	sort_key = "no-sortkey",
}

m["nr"] = {
	"Southern Ndebele",
	36785,
	"bnt-ngu",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

m["nv"] = {
	"Navajo",
	13310,
	"apa",
	Latn,
	sort_key = "nv-sortkey",
}

m["ny"] = {
	"Chichewa",
	33273,
	"bnt-nys",
	Latn,
	entry_name = {remove_diacritics = ACUTE .. CIRC},
	sort_key = "ny-sortkey",
}

m["oc"] = {
	"Occitan",
	14185,
	"roa-ocr",
	{"Latn", "Hebr"},
	ancestors = {"pro"},
	sort_key = "oc-sortkey",
}

m["oj"] = {
	"Ojibwe",
	33875,
	"alg",
	CansLatn,
	sort_key = "oj-sortkey",
}

m["om"] = {
	"Oromo",
	33864,
	"cus-eas",
	{"Latn", "Ethi"},
}

m["or"] = {
	"Oriya",
	33810,
	"inc-eas",
	{"Orya"},
	ancestors = {"inc-mor"},
	translit_module = "or-translit",
}

m["os"] = {
	"Ossetian",
	33968,
	"xsc",
	CyrlGeorLatn,
	ancestors = {"oos"},
	translit_module = "os-translit",
	override_translit = true,
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
	sort_key = "os-sortkey",
}

m["pa"] = {
	"Punjabi",
	58635,
	"inc-pan",
	{"Guru", "pa-Arab"},
	ancestors = {"inc-opa"},
	translit_module = "translit-redirect",
	entry_name = {
		remove_diacritics = FATHATAN .. DAMMATAN .. KASRATAN .. FATHA .. DAMMA .. KASRA .. SHADDA .. SUKUN .. NUNGHUNNA,
		from = {u(0x0768), u(0x08C7)},
		to   = {"ن", "ل"}
	},
}

m["pi"] = {
	"Pali",
	36727,
	"inc-mid",
	{"Latn", "Brah", "Deva", "Beng", "Sinh", "Mymr", "Thai", "Lana", "Laoo", "Khmr"},
	ancestors = {"sa"},
	translit_module = "translit-redirect",
	entry_name = {
		from = {"ึ", u(0xF700), u(0xF70F), u(0xFE00)},
		to   = {"ิํ", "ฐ", "ญ"}
	},
	sort_key = {
		from = {"ā", "ī", "ū", "ḍ", "ḷ", "[ṁṃ]", "ṅ", "ñ", "ṇ", "ṭ", "([เโ])([ก-ฮ])", "([ເໂ])([ກ-ຮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00), u(0x200D)},
		to   = {"a~", "i~", "u~", "d~", "l~", "m~", "n~", "n~~", "n~~~", "t~", "%2%1", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"}
	},
}

m["pl"] = {
	"Polish",
	809,
	"zlw-lch",
	Latn,
	ancestors = {"zlw-opl"},
	sort_key = "pl-sortkey",
}

m["ps"] = {
	"Pashto",
	58680,
	"ira-pat",
	{"ps-Arab"},
}

m["pt"] = {
	"Portuguese",
	5146,
	"roa-ibe",
	LatnBrai,
	ancestors = {"roa-opt"},
	sort_key = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. TILDE .. DIAER .. CEDILLA},
}

m["qu"] = {
	"Quechua",
	5218,
	"qwe",
	Latn,
}

m["rm"] = {
	"Romansch",
	13199,
	"roa-rhe",
	Latn,
}

m["ro"] = {
	"Romanian",
	7913,
	"roa-eas",
	{"Latn", "Cyrl"},
	sort_key = "ro-sortkey",
}

m["ru"] = {
	"Russian",
	7737,
	"zle",
	{"Cyrl", "Brai"},
	translit_module = "ru-translit",
	entry_name = {
		remove_diacritics = GRAVE .. ACUTE .. DIAER,
		remove_exceptions = {"Ё", "ё"}
	},
	sort_key = "ru-sortkey",
	standardChars = "ЁА-яё0-9—" .. PUNCTUATION,
}

m["rw"] = {
	"Rwanda-Rundi",
	3217514,
	"bnt-glb",
	Latn,
	entry_name = {remove_diacritics = ACUTE .. CIRC .. MACRON .. CARON},
}

m["sa"] = {
	"Sanskrit",
	11059,
	"inc-old",
	{"Deva", "Bali", "as-Beng", "Beng", "Bhks", "Brah", "Gran", "Gujr", "Guru", "Java", "Khar", "Khmr", "Knda", "Lana", "Laoo", "Mlym", "Modi", "Mong", "Mymr", "Nand", "Newa", "Orya", "Saur", "Shrd", "Sidd", "Sinh", "Taml", "Telu", "Thai", "Tibt", "Tirh"},
	translit_module = "translit-redirect",
	entry_name = {
		from = {"ึ", u(0xF700), u(0xF70F), u(0xFE00)},
		to   = {"ิํ", "ฐ", "ญ"}
	},
	sort_key = {
		from = {"ā", "ī", "ū", "ḍ", "ḷ", "ḹ", "[ṁṃ]", "ṅ", "ñ", "ṇ", "ṛ", "ṝ", "ś", "ṣ", "ṭ", "([เโไ])([ก-ฮ])", "([ເໂໄ])([ກ-ຮ])", "ᩔ", "ᩕ", "ᩖ", "ᩘ", "([ᨭ-ᨱ])ᩛ", "([ᨷ-ᨾ])ᩛ", "ᩤ", u(0xFE00), u(0x200D)},
		to   = {"a~", "i~", "u~", "d~", "l~", "l~~", "m~", "n~", "n~~", "n~~~", "r~", "r~~", "s~", "s~~", "t~", "%2%1", "%2%1", "ᩈ᩠ᩈ", "᩠ᩁ", "᩠ᩃ", "ᨦ᩠", "%1᩠ᨮ", "%1᩠ᨻ", "ᩣ"}
	},
}

m["sc"] = {
	"Sardinian",
	33976,
	"roa",
	Latn,
}

m["sd"] = {
	"Sindhi",
	33997,
	"inc-snd",
	{"sd-Arab", "Deva", "Sind", "Khoj"},
	translit_module = "translit-redirect",
	entry_name = {
		remove_diacritics = KASHIDA .. FATHATAN .. DAMMATAN .. KASRATAN .. FATHA .. DAMMA .. KASRA .. SHADDA .. SUKUN .. SUPERALEF,
		from = {u(0x0671)},
		to   = {u(0x0627)}
	},
	ancestors = {"inc-vra"},
}

m["se"] = {
	"Northern Sami",
	33947,
	"smi",
	Latn,
	entry_name = {remove_diacritics = MACRON .. DOTBELOW .. "ˈ"},
	sort_key = "se-sortkey",
	standardChars = "A-PR-VZa-pr-vz0-9ÁáČčĐđŊŋŠšŦŧŽž" .. PUNCTUATION,
}

m["sg"] = {
	"Sango",
	33954,
	"crp",
	Latn,
	ancestors = {"ngb"},
}

m["sh"] = {
	"Serbo-Croatian",
	9301,
	"zls",
	{"Latn", "Cyrl", "Glag"},
	entry_name = {
		remove_diacritics = GRAVE .. ACUTE .. TILDE .. MACRON .. DGRAVE .. INVBREVE,
		remove_exceptions = {"Ć", "ć", "З́", "з́", "С́", "с́"} -- Latin Ć and Cyrillic С́
	},
	sort_key = "sh-sortkey",
	wikimedia_codes = {"sh", "bs", "hr", "sr"},
}

m["si"] = {
	"Sinhalese",
	13267,
	"inc-ins",
	{"Sinh"},
	ancestors = {"elu-prk"},
	translit_module = "si-translit",
	override_translit = true,
}

m["sk"] = {
	"Slovak",
	9058,
	"zlw",
	Latn,
	sort_key = {remove_diacritics = ACUTE .. CIRC .. DIAER},
}

m["sl"] = {
	"Slovene",
	9063,
	"zls",
	Latn,
	entry_name = {
		remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. DGRAVE .. INVBREVE .. DOTBELOW,
		from = {"Ə", "ə", "Ł", "ł"},
		to   = {"E", "e", "L", "l"}
	},
	sort_key = "sl-sortkey",
}

m["sm"] = {
	"Samoan",
	34011,
	"poz-pnp",
	Latn,
}

m["sn"] = {
	"Shona",
	34004,
	"bnt-sho",
	Latn,
	entry_name = {remove_diacritics = ACUTE},
}

m["so"] = {
	"Somali",
	13275,
	"cus-eas",
	{"Latn", "Arab", "Osma"},
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC},
}

m["sq"] = {
	"Albanian",
	8748,
	"sqj",
	{"Latn", "Grek", "Elba"},
	entry_name = {remove_diacritics = ACUTE},
	sort_key = {remove_diacritics = CIRC .. TILDE .. DIAER .. CEDILLA},
}

m["ss"] = {
	"Swazi",
	34014,
	"bnt-ngu",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

m["st"] = {
	"Sotho",
	34340,
	"bnt-sts",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

m["su"] = {
	"Sundanese",
	34002,
	"poz-msa",
	{"Latn", "Sund"},
	ancestors = {"osn"},
	translit_module = "su-translit",
}

m["sv"] = {
	"Swedish",
	9027,
	"gmq",
	Latn,
	ancestors = {"gmq-osw"},
}

m["sw"] = {
	"Swahili",
	7838,
	"bnt-swh",
	LatnArab,
	sort_key = "sw-sortkey",
}

m["ta"] = {
	"Tamil",
	5885,
	"dra",
	{"Taml"},
	ancestors = {"oty"},
	translit_module = "ta-translit",
	override_translit = true,
}

m["te"] = {
	"Telugu",
	8097,
	"dra",
	{"Telu"},
	translit_module = "te-translit",
	override_translit = true,
}

m["tg"] = {
	"Tajik",
	9260,
	"ira-swi",
	{"Cyrl", "fa-Arab", "Latn"},
	ancestors = {"pal"}, -- same as "fa", see WT:T:AFA
	translit_module = "tg-translit",
	override_translit = true,
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
	sort_key = "tg-sortkey",
}

m["th"] = {
	"Thai",
	9217,
	"tai-swe",
	{"Thai", "Brai"},
	translit_module = "th-translit",
	sort_key = {
		from = {"[%pๆ]", "[็-๎]", "([เแโใไ])([ก-ฮ])"},
		to   = {"", "", "%2%1"}
	},
}

m["ti"] = {
	"Tigrinya",
	34124,
	"sem-eth",
	Ethi,
	translit_module = "Ethi-translit",
}

m["tk"] = {
	"Turkmen",
	9267,
	"trk-ogz",
	{"Latn", "Cyrl", "Arab"},
	entry_name = {remove_diacritics = MACRON},
	sort_key = "tk-sortkey",
}

m["tl"] = {
	"Tagalog",
	34057,
	"phi",
	{"Latn", "Tglg"},
	translit_module = "tl-translit",
	override_translit = true,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC},
}

m["tn"] = {
	"Tswana",
	34137,
	"bnt-sts",
	Latn,
}

m["to"] = {
	"Tongan",
	34094,
	"poz-pol",
	Latn,
	entry_name = {remove_diacritics = ACUTE},
	sort_key = {remove_diacritics = MACRON},
}

m["tr"] = {
	"Turkish",
	256,
	"trk-ogz",
	Latn,
	ancestors = {"ota"},
	dotted_dotless_i = true,
	sort_key = "tr-sortkey",
}

m["ts"] = {
	"Tsonga",
	34327,
	"bnt-tsr",
	Latn,
}

m["tt"] = {
	"Tatar",
	25285,
	"trk-kbu",
	{"Cyrl", "Latn", "tt-Arab"},
	translit_module = "tt-translit",
	override_translit = true,
	dotted_dotless_i = true,
	sort_key = "tt-sortkey",
}

-- "tw" IS TREATED AS "ak", SEE WT:LT

m["ty"] = {
	"Tahitian",
	34128,
	"poz-pep",
	Latn,
}

m["ug"] = {
	"Uyghur",
	13263,
	"trk-kar",
	{"ug-Arab", "Latn", "Cyrl"},
	ancestors = {"chg"},
	translit_module = "ug-translit",
	override_translit = true,
}

m["uk"] = {
	"Ukrainian",
	8798,
	"zle",
	Cyrl,
	ancestors = {"zle-ort"},
	translit_module = "uk-translit",
	entry_name = {remove_diacritics = GRAVE .. ACUTE},
	sort_key = "uk-sortkey",
	standardChars = "ЄІЇА-ЩЬЮ-щьюяєії" .. PUNCTUATION,
}

m["ur"] = {
	"Urdu",
	1617,
	"inc-hnd",
	{"ur-Arab"},
	ancestors = {"inc-ohi"},
	entry_name = {remove_diacritics = KASHIDA .. FATHATAN .. DAMMATAN .. KASRATAN .. FATHA .. DAMMA .. KASRA .. SHADDA .. SUKUN .. NUNGHUNNA},
	-- put Judeo-Urdu (Hebrew-script Urdu) under the category header
	-- U+FB21 HEBREW LETTER WIDE ALEF so that it sorts after Arabic script titles
	sort_key = {
		from = {"^%f[" .. u(0x5D0) .. "-" .. u(0x5EA) .. "]"},
		to   = {u(0xFB21)},
	},
}

m["uz"] = {
	"Uzbek",
	9264,
	"trk-kar",
	LatnCyrlfaArab,
	ancestors = {"chg"},
	translit_module = "uz-translit",
	sort_key = "uz-sortkey",
}

m["ve"] = {
	"Venda",
	32704,
	"bnt-bso",
	Latn,
}

m["vi"] = {
	"Vietnamese",
	9199,
	"mkh-vie",
	LatnHani,
	ancestors = {"mkh-mvi"},
	sort_key = "vi-sortkey",
}

m["vo"] = {
	"Volapük",
	36986,
	"art",
	Latn,
}

m["wa"] = {
	"Walloon",
	34219,
	"roa-oil",
	Latn,
	ancestors = {"fro"},
	sort_key = "fr-sortkey",
}

m["wo"] = {
	"Wolof",
	34257,
	"alv-fwo",
	LatnArab,
}

m["xh"] = {
	"Xhosa",
	13218,
	"bnt-ngu",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

m["yi"] = {
	"Yiddish",
	8641,
	"gmw",
	{"Hebr"},
	ancestors = {"gmh"},
	translit_module = "yi-translit",
	sort_key = {
		from = {"[אַאָ]", "בּ", "[וֹוּ]", "יִ", "ײַ", "פֿ"},
		to = {"א", "ב", "ו", "י",	"יי", "פ"}
	},
}

m["yo"] = {
	"Yoruba",
	34311,
	"alv-yor",
	LatnArab,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. MACRON},
	sort_key = "yo-sortkey",
}

m["za"] = {
	"Zhuang",
	13216,
	"tai",
	LatnHani,
	sort_key = "za-sortkey",
}

m["zh"] = {
	"Chinese",
	7850,
	"zhx",
	{"Hani", "Brai", "Nshu"},
	ancestors = {"ltc"},
	sort_key = "zh-sortkey",
}

m["zu"] = {
	"Zulu",
	10179,
	"bnt-ngu",
	Latn,
	entry_name = {remove_diacritics = GRAVE .. ACUTE .. CIRC .. MACRON .. CARON},
}

return m