Module:Language/data/ISO 639-1/make

getArgs = require('Module:Arguments').getArgs function extract (frame) local export = {} local args = getArgs(frame) local data = args[1] or 'Module:Language/data/iana languages' local data = mw.loadData(data) for k,v in pairs(data) do		if k == mw.ustring.match(k,'%a%a') then local temp = '["'..k..'"] = {' for key,value in pairs(v) do				temp = temp..'"'..value..'", ' end temp = temp..'}, '			temp = mw.ustring.gsub(temp,', }','}') table.insert(export,temp) end end table.sort(export) return 'return { '..table.concat(export)..'}' end return {extract = extract}