Documentation for this module may be created at မော်ဂျူး:languages/JSON/doc

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) or error("ဘာသာစကားကုဒ် မတွေ့ရှိပါ")
	
	return lang:toJSON()
end

return export