Sha256: 74380629d9af7eaeaa6e437f79027c0a30a84a765f4962dd6c4400b3a31d7c4d

Contents?: true

Size: 989 Bytes

Versions: 19

Compression:

Stored size: 989 Bytes

Contents

import './prototype';
import { getSetGlobalLocale } from './locales';
import toInt from '../utils/to-int';

getSetGlobalLocale('en', {
    eras: [
        {
            since: '0001-01-01',
            until: +Infinity,
            offset: 1,
            name: 'Anno Domini',
            narrow: 'AD',
            abbr: 'AD',
        },
        {
            since: '0000-12-31',
            until: -Infinity,
            offset: 1,
            name: 'Before Christ',
            narrow: 'BC',
            abbr: 'BC',
        },
    ],
    dayOfMonthOrdinalParse: /\d{1,2}(th|st|nd|rd)/,
    ordinal: function (number) {
        var b = number % 10,
            output =
                toInt((number % 100) / 10) === 1
                    ? 'th'
                    : b === 1
                    ? 'st'
                    : b === 2
                    ? 'nd'
                    : b === 3
                    ? 'rd'
                    : 'th';
        return number + output;
    },
});

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
card-mod-date-0.15.6 vendor/moment/src/lib/locale/en.js
card-mod-date-0.15.0 vendor/moment/src/lib/locale/en.js
card-mod-date-0.14.2 vendor/moment/src/lib/locale/en.js
card-mod-date-0.14.1 vendor/moment/src/lib/locale/en.js
card-mod-date-0.14.0 vendor/moment/src/lib/locale/en.js
card-mod-date-0.13.4 vendor/moment/src/lib/locale/en.js
card-mod-date-0.13.3 vendor/moment/src/lib/locale/en.js
card-mod-date-0.13.2 vendor/moment/src/lib/locale/en.js
card-mod-date-0.13.1 vendor/moment/src/lib/locale/en.js
card-mod-date-0.13.0 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.7 vendor/moment/src/lib/locale/en.js
card-mod-date-0.12.0 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.6 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.5 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.4 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.3 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.2 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.1 vendor/moment/src/lib/locale/en.js
card-mod-date-0.11.0 vendor/moment/src/lib/locale/en.js