welsonjs/node_modules/modernizr/feature-detects/intl.js

22 lines
625 B
JavaScript

/*!
{
"name": "Internationalization API",
"property": "intl",
"caniuse": "internationalization",
"notes": [{
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl"
}, {
"name": "ECMAScript spec",
"href": "https://www.ecma-international.org/ecma-402/1.0/"
}]
}
!*/
/* DOC
Detects support for the Internationalization API which allow easy formatting of number and dates and sorting string
based on a locale
*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
Modernizr.addTest('intl', !!prefixed('Intl', window));
});