-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path6e27d5e9.d5ab6e17.js
1 lines (1 loc) · 4.33 KB
/
6e27d5e9.d5ab6e17.js
1
"use strict";(self.webpackChunkwebsite=self.webpackChunkwebsite||[]).push([[738],{1098:(l,e,t)=>{t.r(e),t.d(e,{assets:()=>a,contentTitle:()=>r,default:()=>f,frontMatter:()=>o,metadata:()=>i,toc:()=>c});const i=JSON.parse('{"id":"polyfills","title":"Polyfills","description":"One of our goals is to provide developers with access to newest ECMA-402 Intl APIs. Therefore, FormatJS suite also provide multiple high quality polyfills that are fully tested using the Official ECMAScript Conformance Test Suite.","source":"@site/docs/polyfills.md","sourceDirName":".","slug":"/polyfills","permalink":"/docs/polyfills","draft":false,"unlisted":false,"editUrl":"https://github.com/formatjs/formatjs/edit/main/website/docs/polyfills.md","tags":[],"version":"current","lastUpdatedBy":"renovate[bot]","lastUpdatedAt":1743752256000,"frontMatter":{"id":"polyfills","title":"Polyfills"},"sidebar":"polyfills","next":{"title":"Intl.DateTimeFormat (ESNext)","permalink":"/docs/polyfills/intl-datetimeformat"}}');var s=t(6106),n=t(8299);const o={id:"polyfills",title:"Polyfills"},r="polyfill-fastly.io Integration",a={},c=[];function d(l){const e={a:"a",h1:"h1",header:"header",img:"img",li:"li",p:"p",ul:"ul",...(0,n.R)(),...l.components};return(0,s.jsxs)(s.Fragment,{children:[(0,s.jsxs)(e.p,{children:["One of our goals is to provide developers with access to newest ECMA-402 Intl APIs. Therefore, FormatJS suite also provide multiple high quality polyfills that are fully tested using the ",(0,s.jsx)(e.a,{href:"https://github.com/tc39/test262",children:"Official ECMAScript Conformance Test Suite"}),"."]}),"\n",(0,s.jsx)(e.p,{children:"Our current list of polyfills includes:"}),"\n",(0,s.jsxs)(e.ul,{children:["\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-pluralrules",children:"Intl.PluralRules"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-relativetimeformat",children:"Intl.RelativeTimeFormat"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-listformat",children:"Intl.ListFormat"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-displaynames",children:"Intl.DisplayNames"})}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-numberformat",children:"Intl.NumberFormat"})," (ES2020)"]}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-locale",children:"Intl.Locale"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-localematcher",children:"Intl.LocaleMatcher"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-getcanonicallocales",children:"Intl.getCanonicalLocales"})}),"\n",(0,s.jsxs)(e.li,{children:[(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-datetimeformat",children:"Intl.DateTimeFormat"})," (ES2020)"]}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-segmenter",children:"Intl.Segmenter"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-durationformat",children:"Intl.DurationFormat"})}),"\n",(0,s.jsx)(e.li,{children:(0,s.jsx)(e.a,{href:"/docs/polyfills/intl-supportedvaluesof",children:"Intl.supportedValuesOf"})}),"\n"]}),"\n",(0,s.jsx)(e.p,{children:(0,s.jsx)(e.img,{alt:"Polyfill Hierarchy",src:t(2285).A+"",width:"952",height:"744"})}),"\n",(0,s.jsx)(e.header,{children:(0,s.jsx)(e.h1,{id:"polyfill-fastlyio-integration",children:"polyfill-fastly.io Integration"})}),"\n",(0,s.jsxs)(e.p,{children:["For basic use cases, we recommend using ",(0,s.jsx)(e.a,{href:"https://polyfill-fastly.io/",children:"polyfill-fastly.io"})," or ",(0,s.jsx)(e.a,{href:"https://github.com/Financial-Times/polyfill-library",children:"polyfill-library"})," to generate polyfill bundle since it automatically resolves the dependencies above for you."]})]})}function f(l={}){const{wrapper:e}={...(0,n.R)(),...l.components};return e?(0,s.jsx)(e,{...l,children:(0,s.jsx)(d,{...l})}):d(l)}},2285:(l,e,t)=>{t.d(e,{A:()=>i});const i=t.p+"assets/images/polyfills-202467d29ade4e2483d807fcee84da2a.svg"},8299:(l,e,t)=>{t.d(e,{R:()=>o,x:()=>r});var i=t(7378);const s={},n=i.createContext(s);function o(l){const e=i.useContext(n);return i.useMemo((function(){return"function"==typeof l?l(e):{...e,...l}}),[e,l])}function r(l){let e;return e=l.disableParentContext?"function"==typeof l.components?l.components(s):l.components||s:o(l.components),i.createElement(n.Provider,{value:e},l.children)}}}]);