Module:languages/names/generate: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 1: Line 1:
local export = {}
local export = {}
local languages = mw.loadData("Module:languages/data")


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

Navigation menu