Module:languages/names/generate: Difference between revisions

ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 5: Line 5:
local ret = "return {"
local ret = "return {"
ret = ret .. '\n["num"] = ' .. #languages .. ","
ret = ret .. '\n["num"] = ' .. #languages .. ","
ret = ret .. '["test"] = ' .. languages[1].name .. ","
ret = ret .. '["test"] = ' .. languages[1] .. ","
for k, v in ipairs(languages) do
for k, v in ipairs(languages) do
ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",'
ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",'