2,788
edits
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 string. Got " .. type(code) | error("Language code must be string. Got " .. type(code)) | ||
end | end | ||
local l = languages[code] | local l = languages[code] |