模块: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