-- The values and functions in this submodule should be localized per wiki.
local p =
function p.init(aliasesP) p =
p.getOrdinalSuffix = function(num) if tostring(num):sub(-2,-2)
num = tostring(num):sub(-1)
if num
'2' then return "nd" elseif num
p.addDelimiters = function(n) local left, num, right = string.match(n, "^([^%d]*%d)(%d*)(.-)$")
if left and num and right then return left .. (num:reverse:gsub("(%d%d%d)", "%1" .. p['numeric']['delimiter']):reverse) .. right else return n end end
return pend
return p