UNPKG

@formatjs/intl-getcanonicallocales

Version:

Intl.getCanonicalLocales polyfill

24 lines (23 loc) 712 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var _1 = require("./"); if (typeof Intl === 'undefined') { if (typeof window !== 'undefined') { Object.defineProperty(window, 'Intl', { value: {}, }); // @ts-ignore we don't include @types/node so global isn't a thing } else if (typeof global !== 'undefined') { // @ts-ignore we don't include @types/node so global isn't a thing Object.defineProperty(global, 'Intl', { value: {}, }); } } Object.defineProperty(Intl, 'getCanonicalLocales', { value: _1.getCanonicalLocales, writable: true, enumerable: false, configurable: true, });