Module:languages/names/generate: Difference between revisions
< Module:languages | names
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 3: | Line 3: | ||
function export.show() | function export.show() | ||
local ret = "return {" | local ret = "return {" | ||
for k, v in ipairs( | for k, v in ipairs(mw.loadData("Module:languages/data")) do | ||
ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",' | ret = ret .. '\n\t["' .. v.name .. '"] = "' .. v.code .. '",' | ||
end | end |
Revision as of 07:36, 6 August 2023
Generates up-to-date output that can be used to set the value of Module:languages/names.
Result
return {
}