UNPKG

intl

Version:

Polyfill the ECMA-402 Intl API (except collation)

14 lines (11 loc) 326 B
import IntlPolyfill from "./core.js"; // hack to export the polyfill as global Intl if needed if (typeof Intl === 'undefined') { try { window.Intl = IntlPolyfill; IntlPolyfill.__applyLocaleSensitivePrototypes(); } catch (e) { // can be read only property } } export default IntlPolyfill;