Module:languages: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 32: Line 32:
local l = export.get_by_code(code)
local l = export.get_by_code(code)
return l[field]
return l[field]
end
function export.is_ancestor(language, code)
if language.lineage == nil then return false end
return language.lineage[code] ~= nil
end
end


Navigation menu