وحدة:languages/JSON

من ويكاموس، القاموس الحر

يمكن إنشاء صفحة توثيق الوحدة في وحدة:languages/JSON/شرح

local export = {}

function export.getByCode(frame)
	local args = frame.args
	local langcode = args[1] or error("Language code has not been specified. Please pass parameter 1 to the module invocation.")
	
	local lang = require("Module:languages").getByCode(langcode)
	
	return require("Module:JSON").toJSON(lang)
end

return export