2 import { getSetGlobalLocale } from './locales';
3 import toInt from '../utils/to-int';
5 getSetGlobalLocale('en', {
6 ordinalParse: /\d{1,2}(th|st|nd|rd)/,
7 ordinal : function (number) {
9 output = (toInt(number % 100 / 10) === 1) ? 'th' :
12 (b === 3) ? 'rd' : 'th';
13 return number + output;