src/static/js/Intl.js
function $$core$$resolveDateString(data, ca, component, width, key) {
        // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:
        // 'In clearly specified instances, resources may inherit from within the same locale.
        //  For example, ... the Buddhist calendar inherits from the Gregorian calendar.'
        var obj = data[ca] && data[ca][component]
                    ? data[ca][component]
                    : data.gregory[component],

            // "sideways" inheritance resolves strings when a key doesn't exist
            alts = {
                narrow: ['short', 'long'],
                short:  ['long', 'narrow'],
                long:   ['short', 'narrow']
            },

            //
            resolved = $$core$$hop.call(obj, width)
                      ? obj[width]
                      : $$core$$hop.call(obj, alts[width][0])
                          ? obj[alts[width][0]]
                          : obj[alts[width][1]];

        // `key` wouldn't be specified for components 'dayPeriods'
        return key != null ? resolved[key] : resolved;
    }
function $$core$$resolveDateString(data, ca, component, width, key) {
        // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance:
        // 'In clearly specified instances, resources may inherit from within the same locale.
        //  For example, ... the Buddhist calendar inherits from the Gregorian calendar.'
        var obj = data[ca] && data[ca][component]
                    ? data[ca][component]
                    : data.gregory[component],

            // "sideways" inheritance resolves strings when a key doesn't exist
            alts = {
                narrow: ['short', 'long'],
                short:  ['long', 'narrow'],
                long:   ['short', 'narrow']
            },

            //
            resolved = $$core$$hop.call(obj, width)
                      ? obj[width]
                      : $$core$$hop.call(obj, alts[width][0])
                          ? obj[alts[width][0]]
                          : obj[alts[width][1]];

        // `key` wouldn't be specified for components 'dayPeriods'
        return key != null ? resolved[key] : resolved;
    }
function $$core$$resolveDateString ( data , ca , component , width , key ) { // From http://www.unicode.org/reports/tr35/tr35.html#Multiple_Inheritance: // 'In clearly specified instances, resources may inherit from within the same locale. //  For example, ... the Buddhist calendar inherits from the Gregorian calendar.' var obj = data [ ca ] && data [ ca ] [ component ] ? data [ ca ] [ component ] : data . gregory [ component ] , // "sideways" inheritance resolves strings when a key doesn't exist alts = { narrow : [ 'short' , 'long' ] , short : [ 'long' , 'narrow' ] , long : [ 'short' , 'narrow' ] } , // resolved = $$core$$hop . call ( obj , width ) ? obj [ width ] : $$core$$hop . call ( obj , alts [ width ] [ 0 ] ) ? obj [ alts [ width ] [ 0 ] ] : obj [ alts [ width ] [ 1 ] ] ; // `key` wouldn't be specified for components 'dayPeriods' return key != null ? resolved [ key ] : resolved ; }
Returns a string for a date component, resolved using multiple inheritance as specified
as specified in the Unicode Technical Standard 35.
Returns a string for a date component resolved using multiple inheritance as specified as specified in the Unicode Technical Standard 35 .