IntlShim.js 488 B

1234567891011121314
  1. /* global Intl */
  2. /**
  3. * Shim for native vs. ecma402 package implementation of the Intl object.
  4. * By default, using IntlShim will leverage any support for Intl that exists
  5. * natively in the browser. If the browser does not have support for Intl,
  6. * then the JavaScript implementation from this package is used instead.
  7. *
  8. * Loads ./Intl.js only if necessary
  9. *
  10. * @constructor
  11. */
  12. define(["./features!intl-api?:./Intl"], function (IntlShim) {
  13. return IntlShim || Intl;
  14. });