Kontent qismiga oʻtish

Modul:languages/cache

Vikilug‘atdan olingan

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

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