Module:pi-translit

local export = {}

function export.tr(text, lang, sc, debug_mode)

	local out_text
	if (sc == 'Brah') then
		out_text = require('Module:Brah-translit').tr(text, lang, sc, debug_mode)
	elseif (sc == 'Deva') then
		out_text = require('Module:sa-translit').tr(text, lang, sc, debug_mode)
	elseif (sc == 'Sinh') then
		out_text = require('Module:si-translit').tr(text, lang, sc, debug_mode)
	else
	--	local namespace = mw.title:getCurrentTitle().nsText
	--	if namespace == "Category" then
	--		out_text = nil
	--	else
	--		error('Invalid script for Pali language.')
	--	end
	end

	return out_text

end

return export