2,788
edits
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
function export.show() | function export.show() | ||
local languages = require("Module:languages") | local languages = require("Module:languages/data") | ||
local ret = "return {" | local ret = "return {" | ||
ret = ret .. '\n["num"] = ' .. #languages .. "," | ret = ret .. '\n["num"] = ' .. #languages .. "," | ||
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 .. '",' |