Module:languages/names/generate: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 2: Line 2:


function export.show()
function export.show()
-- local ret = "return {"
local ret = "return {"
-- local languages = require("Module:languages/data")
for k, v in ipairs(require("Module:languages/data")) do
-- ret = ret .. '\n\t["num"] = ' .. #languages .. ","
ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",'
-- for k, v in ipairs(languages) do
end
-- ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",'
ret = ret .. "\n}"
-- end
return ret
-- ret = ret .. "\n}"
-- return ret
return require("Module:languages/data")["ryn"].name
end
end


return export
return export