An ATproto social media client -- with an independent Appview.

remove title casing of `Intl.DisplayNames` language names (#8433)

authored by

surfdude29 and committed by
GitHub
6d90d3c2 9ebfbd0e

+1 -2
+1 -2
src/locale/helpers.ts
··· 45 45 const translatedName = allNames.of(langCode) 46 46 47 47 if (translatedName) { 48 - // force simple title case (as languages do not always start with an uppercase in Unicode data) 49 - return translatedName[0].toLocaleUpperCase() + translatedName.slice(1) 48 + return translatedName 50 49 } 51 50 } catch (e) { 52 51 // ignore RangeError from Intl.DisplayNames APIs