2,788
edits
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
local export = {} | local export = {} | ||
function export.show() | function export.show() | ||
local ret = "return {" | local ret = "return {" | ||
local languages = mw.loadData("Module:languages/data") | |||
for k, v in | for k, v in pairs(languages) do | ||
ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",' | ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",' | ||
end | end |