Module:languages: Difference between revisions

Jump to navigation Jump to search
no edit summary
(Created page with "local export = {} --[=[ This function checks for things that could plausibly be a language code: two or three lowercase letters, two or three groups of three lowercase le...")
 
No edit summary
Line 319: Line 319:
if not ((module_override or self._rawData.translit_module) and text) then
if not ((module_override or self._rawData.translit_module) and text) then
return nil
return nil
end
if module_override then
require("Module:debug").track("module_override")
end
end
Line 402: Line 398:


function export.makeObject(code, data)
function export.makeObject(code, data)
if data and data.deprecated then
require("Module:debug").track {
"languages/deprecated",
"languages/deprecated/" .. code
}
end
return data and setmetatable({ _rawData = data, _code = code }, Language) or nil
return data and setmetatable({ _rawData = data, _code = code }, Language) or nil

Navigation menu