Documentation for this module may be created at Module:languages/by name/doc

local export = {}

local function iterate(list)
	for code, data in pairs(list) do
		export[data[1]] = code
		
		if data.otherNames then
			for i, otherName in pairs(data.otherNames) do
				if not export[otherName] then
					export[otherName] = code
				end
			end
		end
	end
end

iterate(mw.loadData("Module:languages/data2"))

for letter in mw.ustring.gmatch("abcdefghijklmnopqrstuvwxyz", "(.)") do
	iterate(mw.loadData("Module:languages/data3/" .. letter))
end

iterate(mw.loadData("Module:languages/datax"))

return export
"https://ta.wiktionary.org/w/index.php?title=Module:languages/by_name&oldid=1684214" இலிருந்து மீள்விக்கப்பட்டது