Module:languages: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 1: Line 1:
local export = {}
local export = {}
local languages = {
 
export.languages = {
-- Proto-Laenkean
-- Proto-Laenkean
["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true},
["lnk-pro"] = {name = "Proto-Laenkean", code = "lnk-pro", link = ":Category:Proto-Laenkean roots", proto = true},
Line 27: Line 28:
error("Language code must be string. Got " .. type(code))
error("Language code must be string. Got " .. type(code))
end
end
local l = languages[code]
local l = export.languages[code]
if l == nil then
if l == nil then
error("No such language code")
error("No such language code")

Navigation menu