Module:languages/names/generate

< Module:languages‎ | names
Revision as of 07:34, 6 August 2023 by Maria (talk | contribs)

Generates up-to-date output that can be used to set the value of Module:languages/names.

Result

return {
}

local export = {}

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

return export