UNPKG

ngx-bootstrap

Version:
14 lines 477 B
import { getSetGlobalLocale } from './locales.service'; import { toInt } from '../utils/type-checks'; getSetGlobalLocale('en', { dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/, ordinal: function (num) { var b = num % 10; var output = (toInt(num % 100 / 10) === 1) ? 'th' : (b === 1) ? 'st' : (b === 2) ? 'nd' : (b === 3) ? 'rd' : 'th'; return num + output; } }); //# sourceMappingURL=en.js.map