this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

More fallbacks for Intl.DisplayNames

+4
+4
src/utils/localeCode2Text.jsx
··· 25 25 try { 26 26 const text = IntlDN(locale || i18n.locale).of(code); 27 27 if (text !== code) return text; 28 + if (!fallback) { 29 + const anotherText = IntlDN(code).of(code); 30 + if (anotherText !== code) return anotherText; 31 + } 28 32 return fallback || ''; 29 33 } catch (e) { 30 34 if (codeMappings[code]) {