Kontent qismiga oʻtish

Modul:tili/cache

Vikilug‘atdan olingan

Bu modul uchun Modul:tili/cache/doc nomli hujjat sahifasini yaratishingiz mumkin

local getByCode = require("Module:tili").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