docs/vendor.js
function findLocaleData(locale) {
    var normalizedLocale = locale.toLowerCase().replace(/_/g, '-');
    var match = LOCALE_DATA[normalizedLocale];
    if (match) {
        return match;
    }
    // let's try to find a parent locale
    var parentLocale = normalizedLocale.split('-')[0];
    match = LOCALE_DATA[parentLocale];
    if (match) {
        return match;
    }
    if (parentLocale === 'en') {
        return localeEn;
    }
    throw new Error("Missing locale data for the locale \"" + locale + "\".");
}
function findLocaleData(locale) {
    var normalizedLocale = locale.toLowerCase().replace(/_/g, '-');
    var match = LOCALE_DATA[normalizedLocale];
    if (match) {
        return match;
    }
    // let's try to find a parent locale
    var parentLocale = normalizedLocale.split('-')[0];
    match = LOCALE_DATA[parentLocale];
    if (match) {
        return match;
    }
    if (parentLocale === 'en') {
        return localeEn;
    }
    throw new Error("Missing locale data for the locale \"" + locale + "\".");
}
function findLocaleData ( locale ) { var normalizedLocale = locale . toLowerCase ( ) . replace ( / _ / g , '-' ) ; var match = LOCALE_DATA [ normalizedLocale ] ; if ( match ) { return match ; } // let's try to find a parent locale var parentLocale = normalizedLocale . split ( '-' ) [ 0 ] ; match = LOCALE_DATA [ parentLocale ] ; if ( match ) { return match ; } if ( parentLocale === 'en' ) { return localeEn ; } throw new Error ( "Missing locale data for the locale \"" + locale + "\"." ) ; }
Finds the locale data for a locale id

@experimental i18n support is experimental.
Finds the locale data for a locale id