From 225eaf4a2d165f6cee78b226a38d523ff833d576 Mon Sep 17 00:00:00 2001 From: owl Date: Mon, 5 Aug 2024 12:41:14 +0200 Subject: [PATCH] Pass `undefined` to `Intl.DisplayNames`, so `'*'` doesn't break it --- src/utils/localeCode2Text.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/localeCode2Text.jsx b/src/utils/localeCode2Text.jsx index 5c8ada7f..aea47ef1 100644 --- a/src/utils/localeCode2Text.jsx +++ b/src/utils/localeCode2Text.jsx @@ -1,6 +1,6 @@ import mem from './mem'; -const IntlDN = new Intl.DisplayNames(navigator.languages, { +const IntlDN = new Intl.DisplayNames(undefined, { type: 'language', });