Module:User:Surjection/langname

local export = {} local data = mw.loadData("Module:languages/code to canonical name")

function export.show(frame) return data[frame:getParent.args[1]] or error("Unrecognized or missing language code") end

function export.direct(frame) return data[frame.args[1]] or error("Unrecognized or missing language code") end

return export