Module:languages/cache
Appearance
- This module lacks a documentation subpage. Please create it.
- Useful links: root page • root page’s subpages • links • transclusions • testcases • sandbox
local getByCode = require("Module:languages").getByCode
local langs = {}
-- Auto-create language objects: langs.en -> language object for English.
setmetatable(langs, {
__index = function(self, key)
local lang = getByCode(key, nil, true, true) or false
self[key] = lang
return lang
end
})
return langs