local data = {}

local langcode_to_abbr = {
	cdo = "md",				-- Eastern Min
	cjy = "j",				-- Jin
	cmn = "m",				-- Mandarin
--	cnp 					-- Northern Pinghua
--	cpx 					-- Puxian Min
--	csp 					-- Southern Pinghua
--	czh 					-- Huizhou
--	czo 					-- Central Min
	dng = "dg",				-- Dungan
	gan = "g",				-- Gan
	hak = "h",				-- Hakka
	hsn = "x",				-- Xiang
	ltc = "mc",				-- Middle Chinese
	lzh = "m",				-- Literary (Classical) Chinese
	mnp = "mb",				-- Northern Min
	["nan-hbl"] = "mn",		-- Hokkien
--	["nan-hlh"]				-- Haklau Min
--	["nan-hnm"]				-- Hainanese
	["nan-luh"] = "mn-l",	-- Leizhou Min
	["nan-tws"] = "mn-t",	-- Teochew
	och = "oc",				-- Old Chinese
	wuu = "w",				-- Wu
--	wxa 					-- Waxiang
	yue = "c",				-- Cantonese
	zh = "m",				-- Chinese (general)
--	["zhx-sht"]				-- Shaozhou Tuhua
	["zhx-sic"] = "m-s",	-- Sichuanese
	["zhx-tai"] = "c-t",	-- Taishanese
}

local abbr_to_langcode = {}
for k, v in pairs(langcode_to_abbr) do
	if k ~= "zh" and k ~= "lzh" then
		abbr_to_langcode[v] = k
	end
end

return {
	langcode_to_abbr = langcode_to_abbr,
	abbr_to_langcode = abbr_to_langcode
}
"https://si.wiktionary.org/w/index.php?title=Module:zh/data/lect_codes&oldid=81944" වෙතින් සම්ප්‍රවේශනය කෙරිණි