မဝ်ဂျူ:languages/JSON

နူ ဝိက်ရှေန်နရဳ
အ​ညွှန်း​သို့ ခုန်ကူးရန် ရှာဖွေရန် ခုန်ကူးမည်

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("Language code not found")
	
	return lang:toJSON()
end

return export