Jump to content

Module:Sandbox/Aftabuzzaman/Test

From Wikipedia, the free encyclopedia
local export = {}
 
local mapping = {
	["february"]='ফেব্রুয়ারি', ["1"]='১', ["2"]='২'
};

-- translit any words or phrases
function export.tr(text, lang, sc)
	text = mw.ustring.gsub(
		text,
		'([F12])',
		function(c)
			return mapping[c]
		end)
	
	return text
end
 
return export