Skip to content

Commit

Permalink
Pass undefined to Intl.DisplayNames, so '*' doesn't break it
Browse files Browse the repository at this point in the history
  • Loading branch information
illfygli committed Aug 5, 2024
1 parent 60289cd commit 225eaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/localeCode2Text.jsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import mem from './mem';

const IntlDN = new Intl.DisplayNames(navigator.languages, {
const IntlDN = new Intl.DisplayNames(undefined, {
type: 'language',
});

Expand Down

0 comments on commit 225eaf4

Please sign in to comment.