Module:Sandbox/3

From Wiktionary, the free dictionary
Jump to navigation Jump to search

local export = {}

-- Considering faster ways to get just the Canonical language name by the code which is passed.
function export.getNameByCode(frame)
    local lang = require("Module:languages").getByCode(frame.args[1])

    return lang:getCanonicalName()
end

return export