Module:languages
Jump to navigation
Jump to search
local export = {}
local languages = {
-- Proto-Laenkean
lae_pro = {name = "Proto-Laenkean", code = "lae-pro"},
-- Balavic
bal = {name = "Balavic", code = "bal"},
-- Kilitic
kil = {name = "Kilitic", code = "kil"},
-- Laefevian
lfv_pro = {name = "Proto-Laefevic", code = "lfv-pro"},
lfv = {name = "Lafevian", code = "lfv"},
-- Radestrian
rad_pro = {name = "Proto-Radic", code = "rad-pro"},
rad = {name = "Radestrian", code = "rad"},
-- Riyan
ryn_o = {name = "Old Riyan", code = "ryn-o"},
ryn_m = {name = "Middle Riyan", code = "ryn-m"},
ryn = {name = "Riyan", code = "ryn"}
}
function export.getByCode(frame)
local code = frame.args[1]
local want = frame.args[2]
return languages[code][want]
end
return export