Module:languages: Difference between revisions

Jump to navigation Jump to search
ਕੋਈ ਸੋਧ ਸਾਰ ਨਹੀਂ
No edit summary
No edit summary
Line 21: Line 21:
function export.get_by_code(code)
function export.get_by_code(code)
if type(code) ~= "string" then
if type(code) ~= "string" then
error("Language code must be a string")
error("Language code must be string. Got " .. type(code) .. ".")
end
end
local l = languages[code]
local l = languages[code]

Navigation menu