about summary refs log tree commit diff
path: root/src/locale
diff options
context:
space:
mode:
authorsurfdude29 <149612116+surfdude29@users.noreply.github.com>2025-07-22 00:35:04 +0100
committerGitHub <noreply@github.com>2025-07-21 18:35:04 -0500
commit6d90d3c2fef2d4fcfcd998d5a0cbaeb02c367279 (patch)
tree6bfb6b60b029e4bcccb28b822d7dad50f9fcd1e3 /src/locale
parent9ebfbd0e408b7f7661766688c6cad5dca58d475e (diff)
downloadvoidsky-6d90d3c2fef2d4fcfcd998d5a0cbaeb02c367279.tar.zst
remove title casing of `Intl.DisplayNames` language names (#8433)
Diffstat (limited to 'src/locale')
-rw-r--r--src/locale/helpers.ts3
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