X-Git-Url: https://git.r.bdr.sh/rbdr/forum/blobdiff_plain/bd8e98d7e24c4dbaee7db6ec7955f7c2f6d396a6..63c3da2af27fcfb1a9893ade03543e3a30949c8d:/src/components/language_selector/language_selector.svelte?ds=sidebyside

diff --git a/src/components/language_selector/language_selector.svelte b/src/components/language_selector/language_selector.svelte
index 67c0814..3ac4894 100644
--- a/src/components/language_selector/language_selector.svelte
+++ b/src/components/language_selector/language_selector.svelte
@@ -3,9 +3,9 @@
   import { getLangNameFromCode } from 'language-name-map';
 
   $: namedLocales = $locales
-    .map((locale) => ({
-      code: locale,
-      ...getLangNameFromCode(locale)
+    .map((code) => ({
+      code,
+      ...getLangNameFromCode(code)
     }))
     .sort((a, b) => a.native - b.native);
 
