Module:Convert to eastern arabic numerals: Difference between revisions

Content deleted Content added
Undid revision 1062364262 by Snood1205 (talk)
No edit summary
Line 15:
}
 
function p.convertconvert_str(framenum_str)
local num_str = tostring(frame.args[1])
for western, eastern in pairs(conversion_table) do
num_str = string.gsub(num_str, western, eastern)
end
return num_str
end
 
function p.convert(frame)
local num_str = tostring(frame.args[1])
return p.convert_str(num_srt)
end