Skip to content

Commit 8632739

Browse files
committed
fix(@formatjs/intl-locale): remove Intl check
Refer to https://formatjs.io/docs/polyfills to check the correct Intl API hierarchy
1 parent 85f221c commit 8632739

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

packages/intl-locale/should-polyfill.ts

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,5 @@ function hasIntlGetCanonicalLocalesBug(): boolean {
1010
}
1111

1212
export function shouldPolyfill() {
13-
return (
14-
typeof Intl === 'undefined' ||
15-
!('Locale' in Intl) ||
16-
hasIntlGetCanonicalLocalesBug()
17-
)
13+
return !('Locale' in Intl) || hasIntlGetCanonicalLocalesBug()
1814
}

0 commit comments

Comments
 (0)