@formatjs/intl-getcanonicallocales
Version:
Intl.getCanonicalLocales polyfill
8 lines (7 loc) • 314 B
JavaScript
//#region packages/intl-getcanonicallocales/should-polyfill.ts
function shouldPolyfill() {
return typeof Intl === "undefined" || !("getCanonicalLocales" in Intl) || Intl.getCanonicalLocales("und-x-private")[0] === "x-private";
}
//#endregion
export { shouldPolyfill };
//# sourceMappingURL=should-polyfill.js.map