{"library":"intl","type":"library","category":null,"description":"Intl.js is a robust polyfill for the ECMA-402 ECMAScript Internationalization API, designed to provide comprehensive localization methods, including `Intl.NumberFormat` and `Intl.DateTimeFormat`, across various JavaScript environments. Currently at version 1.2.5, this library addresses the absence of native `Intl` support or incomplete locale data in legacy browsers like older Safari, as well as specific Node.js versions prior to 0.12 or lacking full CLDR data. Its release cadence is event-driven, with major/minor updates coinciding with new editions of the Ecma-402 specification (e.g., v1.2.1 for Ecma-402 2016) and significant CLDR data updates (e.g., v1.1.0 for CLDR 28.0.0). Patch releases are frequent for bug fixes and minor improvements. A key advantage of Intl.js is its ability to seamlessly integrate with public polyfill services like `cdn.polyfill.io`, ensuring that the polyfill code and corresponding locale data are only loaded by browsers that genuinely require them, thereby optimizing application performance and bandwidth usage. For server-side Node.js applications, it offers explicit mechanisms to detect and patch the runtime with the necessary `Intl` constructors and locale information. This package is crucial for developers building internationally-aware applications targeting a wide range of client and server environments.","language":"javascript","status":"active","version":"1.2.5","tags":["javascript","intl","i18n","internationalization","ecma402","polyfill"],"last_verified":"Wed May 27","install":[{"cmd":"npm install intl","imports":["const IntlPolyfill = require('intl');\n// ... then potentially global.Intl = IntlPolyfill;","const IntlPolyfill = require('intl');\nIntl.NumberFormat = IntlPolyfill.NumberFormat;\nIntl.DateTimeFormat = IntlPolyfill.DateTimeFormat;","<script src=\"https://cdn.polyfill.io/v2/polyfill.min.js?features=Intl.~locale.en,Intl.~locale.fr\"></script>"]},{"cmd":"yarn add intl","imports":[]},{"cmd":"pnpm add intl","imports":[]}],"homepage":null,"github":"https://github.com/andyearnshaw/Intl.js","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/intl","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/intl/compatibility"}}