(locale = 'en')
| 71 | } |
| 72 | |
| 73 | export function shouldPolyfill(locale = 'en'): string | undefined { |
| 74 | if ( |
| 75 | typeof Intl === 'undefined' || |
| 76 | !('NumberFormat' in Intl) || |
| 77 | !supportsES2020() || |
| 78 | !supportsES2023() || |
| 79 | onlySupportsEn() || |
| 80 | !supportedLocalesOf(locale) |
| 81 | ) { |
| 82 | return locale ? match([locale], supportedLocales, 'en') : undefined |
| 83 | } |
| 84 | } |
no test coverage detected