Module:km-pron/generate

local export = {} local m_links = require("Module:links") local test_data = require('Module:km-pron/testcases/data')

function export.make(frame) local result, args = {}, {} for _, data in pairs(test_data) do		local args = mw.text.split(data.respelling or data.word, ", ") args["word"] = data.word table.insert(result, 			" " .. 			m_links.language_link{ 				term = data.word, 				lang = require("Module:languages").getByCode("km") 			} .. 			" \n" .. 			" \n" ..			mw.getCurrentFrame:expandTemplate{			title = "Template:km-IPA",			args = args} .. "\n\n") end return table.concat(result) end

return export