Module:languages

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)
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