Module:languages: Difference between revisions
Jump to navigation
Jump to search
(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") |
(No difference)
|
Revision as of 15:07, 11 February 2023
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