(locale = 'en')
| 13 | } |
| 14 | |
| 15 | export function shouldPolyfill(locale = 'en'): string | undefined { |
| 16 | if ( |
| 17 | typeof Intl === 'undefined' || |
| 18 | !('ListFormat' in Intl) || |
| 19 | !supportedLocalesOf(locale) |
| 20 | ) { |
| 21 | return locale ? match([locale], supportedLocales, 'en') : undefined |
| 22 | } |
| 23 | } |
no test coverage detected