45,622
edits
No edit summary |
No edit summary |
||
Line 14: | Line 14: | ||
}) | }) | ||
local lang = args[1] | local lang = require("Module:languages").getByCode(args[1]) | ||
if not lang then | if not lang then | ||
return "" | return "" | ||
Line 22: | Line 22: | ||
local default_sort = sort_keys.default | local default_sort = sort_keys.default | ||
local cats = {} | local cats = {} | ||
local prefix = format == "pos" and lang: | local prefix = format == "pos" and lang:getCanonicalName() .. " " or | ||
format == "topic" and lang:getCode() .. ":" or "" | format == "topic" and lang:getCode() .. ":" or "" | ||