diff options
Diffstat (limited to 'src/locale')
-rw-r--r-- | src/locale/helpers.ts | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/locale/helpers.ts b/src/locale/helpers.ts index 380f996b9..f7c8d3160 100644 --- a/src/locale/helpers.ts +++ b/src/locale/helpers.ts @@ -45,8 +45,7 @@ function getLocalizedLanguage( const translatedName = allNames.of(langCode) if (translatedName) { - // force simple title case (as languages do not always start with an uppercase in Unicode data) - return translatedName[0].toLocaleUpperCase() + translatedName.slice(1) + return translatedName } } catch (e) { // ignore RangeError from Intl.DisplayNames APIs |