Module:languages

From Laenkea
Revision as of 15:07, 11 February 2023 by Maria (talk | contribs) (Created page with "local export = {} local languages = { bal = {name = "Balavic", code = "bal"}, kil = {name = "Kilitic", code = "kil"}, rad = {name = "Radestrian", code = "rad"}, lfv = {name = "Lafevian", code = "lfv"}, } function export.getByCode(frame) local code = frame.args[1] local want = frame.args[2] return languages[code][want] end return export")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
local export = {}
local languages = {
	bal = {name = "Balavic", code = "bal"},
	kil = {name = "Kilitic", code = "kil"},
	rad = {name = "Radestrian", code = "rad"},
	lfv = {name = "Lafevian", code = "lfv"},
}

function export.getByCode(frame)
	local code = frame.args[1]
	local want = frame.args[2]
	return languages[code][want]
end

return export