intl.js 592 B

1234567891011121314151617181920
  1. /*!
  2. {
  3. "name": "Internationalization API",
  4. "property": "intl",
  5. "notes": [{
  6. "name": "MDN Docs",
  7. "href": "https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl"
  8. },{
  9. "name": "ECMAScript spec",
  10. "href": "https://www.ecma-international.org/ecma-402/1.0/"
  11. }]
  12. }
  13. !*/
  14. /* DOC
  15. Detects support for the Internationalization API which allow easy formatting of number and dates and sorting string
  16. based on a locale
  17. */
  18. define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
  19. Modernizr.addTest('intl', !!prefixed('Intl', window));
  20. });